/* Web fonts from the own server (scripts/schriften.mjs, origin and SHA-256 in public/fonts/fonts.json, OFL). */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 900; font-display: swap; src: url(/fonts/roboto-900-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/poppins-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/poppins-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/poppins-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Infosectec line (~/Projekte/infosec-decks/DESIGN.md): white and ink carry the surface, red is the only accent.
   Tokens mirror src/site.mjs (gate contrastcheck compares them). No gradients, no accent bars, no centered body text. */
:root {
  --ink: #111111; --dark2: #242424; --dark3: #2E2E2E; --surface: #FFFFFF; --paper: #F8F9FB; --tint: #F3F4F6; --line: #E5E7EB;
  --red: #D70F37; --red-dark: #B20C31; --red-light: #FEF2F2; --text: #4B5563; --muted: #6B7280; --on-dark: #9CA3AF; --green: #2E6B45;
  --head: "Roboto", "Arial Black", Arial, Helvetica, sans-serif;
  --body: "Poppins", Arial, Helvetica, sans-serif;
  --shadow: 0 2px 6px rgba(0, 0, 0, .09);
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--body); color: var(--text); background: var(--surface); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 900; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: var(--surface); padding: 10px 16px; z-index: 20; }
.skip:focus { left: 0; }
.kicker { font: 700 .78rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin: 0 0 .9em; }
/* "// KICKER" as on infosectec.de: the slashes carry the red, the words stay ink (white on dark) */
.kicker::before { content: "// "; color: var(--red); letter-spacing: .05em; }
.dark .kicker { color: var(--surface); }
.preview-bar { margin: 0; padding: 7px 20px; background: var(--red); color: var(--surface); font-size: .85rem; font-weight: 600; }

/* Header: transparent over the dark hero, as on infosectec.de. Every page starts with a dark hero, which leaves
   room for it (padding-top of .hero-center, .hero-in, .hero-article). position absolute without top keeps it below the preview bar. */
.top { position: absolute; left: 0; right: 0; z-index: 10; background: transparent; }
.top-in { display: flex; align-items: center; gap: 36px; min-height: 104px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--surface); text-decoration: none; font: 700 .95rem var(--body); }
.brand img { width: 150px; }
.brand span { padding-left: 14px; border-left: 1px solid var(--dark3); color: var(--on-dark); }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a { color: var(--surface); text-decoration: none; font-size: 1.05rem; font-weight: 500; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--surface); border-bottom-color: var(--red); }
.btn-top { padding: 11px 20px; font-size: .95rem; }

/* Buttons */
.btn { display: inline-block; padding: 14px 24px; border-radius: 8px; font: 600 1rem var(--head); text-decoration: none; border: 2px solid transparent; text-align: center; }
.btn-red { background: var(--red); color: var(--surface); box-shadow: 0 10px 15px -3px rgba(215, 15, 55, .18), 0 4px 6px -4px rgba(215, 15, 55, .18); }
.btn-red:hover { background: var(--red-dark); color: var(--surface); }
.btn-ink { background: var(--ink); color: var(--surface); }
.btn-ink:hover { background: var(--dark3); color: var(--surface); }
.btn-ghost { border-color: var(--surface); color: var(--surface); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }

/* Dark areas */
.dark { background: var(--ink); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: var(--surface); }
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: 150px 92px; }
.hero-product .hero-in { grid-template-columns: 1.4fr .8fr; align-items: start; padding-block: 150px 72px; }
.hero-article { padding-block: 150px 56px; }
.hero:not(.hero-article) h1 { text-transform: uppercase; letter-spacing: 0; }
/* Home: centred like the infosectec.de hero, pill above the title */
.hero-home { min-height: 720px; display: flex; align-items: center; }
/* red cast over the grey photo like the red-lit hero of infosectec.de: one flat colour layer, no gradient */
.hero-home::after { content: ""; position: absolute; inset: 0; background: var(--red); mix-blend-mode: color; opacity: .35; pointer-events: none; }
.hero-home .hero-center { z-index: 1; }
.hero-center { position: relative; text-align: center; padding-block: 150px 96px; }
.hero-center h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.05; max-width: 16em; margin-inline: auto; }
.hero-center .lead { margin-inline: auto; }
.hero-center .hero-cta, .hero-center .hero-facts { justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 5px 16px; border-radius: 80px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .05); color: var(--surface); font-size: .95rem; }
.pill .ico { width: 16px; height: 16px; }
.lead { font-size: 1.18rem; color: #D1D5DB; max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: .95rem; }
.hero-facts strong { color: var(--surface); }
.crumbs { display: flex; gap: 8px; font-size: .88rem; margin-bottom: 22px; }
.crumbs a { color: var(--on-dark); }
.article-meta { font-size: .9rem; margin: 0; }

/* Sections, cards, grids */
.sec { padding-block: 84px; }
.tinted { background: var(--paper); }
/* References: logo cards on paper, as on infosectec.de */
.ref-grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ref-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); height: 104px; display: flex; align-items: center; justify-content: center; padding: 20px 26px; }
.ref-grid img { height: 46px; width: auto; max-width: 100%; object-fit: contain; }
/* Dark section with a dot grid (public/images/punkte.svg), the pattern of the service section on infosectec.de */
.sec-dots { background: var(--ink) url(/images/punkte.svg); }
.sec-dots .split { grid-template-columns: 1fr 1fr; }
.dcards { display: grid; gap: 16px; margin-top: 32px; }
.dcard { display: flex; gap: 18px; padding: 22px 24px; border: 1px solid var(--dark3); border-radius: 14px; background: var(--dark2); }
.dcard .ico { color: var(--red); width: 30px; height: 30px; flex: none; margin-top: 2px; }
.dcard h3 { font-size: 1.1rem; margin-bottom: .35em; }
.dcard p { margin: 0; font-size: .95rem; }
.sec-lead { max-width: 46em; margin-bottom: 36px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 36px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.icard, .rcard { padding: 30px; }
.icard h3 { margin-top: 20px; }
.ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-circle { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--red-light); color: var(--red); flex: none; }
.ico-circle.small { width: 44px; height: 44px; }
.ico-circle.small .ico { width: 22px; height: 22px; }
.chk { width: 20px; height: 20px; flex: none; margin-top: 4px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Product cards */
.pcard { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.pcard.is-main { border: 2px solid var(--red); }
.badge { position: absolute; top: 18px; right: 18px; z-index: 1; margin: 0; background: var(--red); color: var(--surface); font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.pcard-img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.pcard-body { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.pcard h3 { font-size: 1.55rem; }
.pcard h3 a, .rcard h3 a { color: var(--ink); text-decoration: none; }
.pcard h3 a:hover, .rcard h3 a:hover { color: var(--red); }
.pcard .btn { margin-top: auto; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks-more { color: var(--muted); }
.ticks-big { gap: 18px; font-size: 1.08rem; color: var(--ink); }
.ticks-dark { margin: 22px 0 0; font-size: .92rem; color: var(--text); }
.price { margin: 0 0 22px; }
.price-num { display: block; font: 900 2.3rem/1.1 var(--head); color: var(--red); }
.price-sub { font-size: .88rem; color: var(--muted); }

/* Price box on product pages */
.pricebox { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.pricebox-name { font: 900 1.25rem var(--head); color: var(--ink); margin-bottom: 10px; }
.buy .btn { width: 100%; }
.buy-note, .buy-alt { display: block; margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.buyline { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 30px; margin-top: 44px; border: 2px solid var(--red); }
.buyline .price { margin: 0; }
.buyline .buy { min-width: 300px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; background: var(--line); }
.steps li { position: relative; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--surface); font: 900 1.1rem var(--head); flex: none; }
.num-red, .docgroup .num { background: var(--red); }
.steps .num { font-size: 1rem; }
.steps h3 { margin-top: 18px; }

/* Split, doc list */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow); }
.doclist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.docgroup { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.docgroup h3 { display: flex; align-items: center; gap: 14px; font-size: 1.08rem; }
.docgroup .num { width: 36px; height: 36px; font-size: .95rem; }
.docgroup ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.docgroup li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
/* Long compounds (Informationssicherheitsleitlinie) are wider than a phone column: hyphenate (lang=de), break as a last resort */
.docgroup li > span:last-child { min-width: 0; hyphens: auto; overflow-wrap: break-word; }
.docgroup strong { color: var(--ink); font-weight: 600; }
.docgroup small { display: block; color: var(--muted); font-size: .86rem; }
.fmt { flex: none; width: 52px; text-align: center; font-size: .72rem; font-weight: 700; padding: 3px 0; border-radius: 4px; margin-top: 3px; background: var(--tint); color: var(--ink); }
.fmt-excel { background: var(--red-light); color: var(--red-dark); }

/* Guides */
.rcard-meta { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.rcard-meta .ico { width: 18px; height: 18px; }
.more { font-weight: 700; }
.article { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 100px; font-size: .92rem; }
.toc ol { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; }
.toc a { color: var(--text); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; scroll-margin-top: 96px; }
.prose li { margin-bottom: .6em; }
.prose strong { color: var(--ink); }
.prose-img { border-radius: var(--radius); aspect-ratio: 16 / 8; object-fit: cover; }
.tablewrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.prose th { background: var(--tint); color: var(--ink); text-align: left; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cta-card { display: flex; gap: 22px; padding: 30px; margin: 48px 0 28px; border: 2px solid var(--red); }
.cta-card h2 { margin-top: 0; font-size: 1.4rem; }
.legalnote { display: flex; gap: 16px; align-items: center; font-size: .9rem; color: var(--muted); margin-top: 36px; }
.name-img { width: 260px; }
.foot-h { font: 700 .78rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }

/* FAQ: cards with a chevron, the open question in red, as on infosectec.de */
.faq { margin-top: 32px; display: grid; gap: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 0 24px; }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font: 600 1.05rem var(--body); color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); }
.faq details[open] summary { color: var(--red); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { padding-bottom: 20px; max-width: 46em; }

/* Closing and footer */
.closing { position: relative; overflow: hidden; }
.closing-in { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-block: 72px; position: relative; }
.closing h2 { margin-bottom: .3em; }
.closing p { margin: 0; color: #D1D5DB; }
.closing .hero-cta { margin: 0; flex: none; }
.shield-mark { position: absolute; right: -30px; top: -40px; width: 300px; fill: none; stroke: var(--red); stroke-width: 6; opacity: .22; }
.foot { background: var(--ink); color: var(--on-dark); font-size: .9rem; border-top: 1px solid var(--dark3); }
.foot-in { display: grid; grid-template-columns: 1.8fr 1fr 1.2fr 1.4fr 1fr; gap: 40px; padding-block: 56px; }
.foot a { display: block; color: var(--surface); text-decoration: none; margin-bottom: 8px; }
.foot a:hover { text-decoration: underline; }
.foot-brand { display: flex; align-items: center; gap: 12px; font: 700 .95rem var(--body); color: var(--on-dark); }
.foot-brand img { width: 140px; }
.foot .foot-h { color: var(--on-dark); }
.foot .foot-h-next { margin-top: 22px; }

/* Document mockups (src/mockups.mjs). Sizes in em so a page scales with the font-size of its container. */
.pg { background: var(--surface); color: var(--ink); width: 21em; height: 29.7em; padding: 1.8em 1.9em 1.4em; font: 400 1em/1.45 Arial, Helvetica, sans-serif; display: flex; flex-direction: column; border: 1px solid var(--line); box-shadow: 0 .8em 2.4em rgba(0, 0, 0, .28); overflow: hidden; text-align: left; }
.pg p { margin: 0; }
.pg-head { display: flex; align-items: center; gap: .6em; font-size: .62em; color: var(--muted); padding-bottom: .8em; border-bottom: 1px solid var(--line); margin-bottom: 1.6em; }
.pg-logo { width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--red); }
.pg-class { margin-left: auto; border: 1px solid var(--line); padding: .1em .6em; border-radius: 2px; }
.pg-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: .58em; color: var(--muted); padding-top: .8em; border-top: 1px solid var(--line); }
.pg-kicker { font-size: .7em; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-top: 3.4em !important; }
.pg-title { font-size: 1.7em; font-weight: 700; line-height: 1.12; margin: .3em 0 .35em !important; }
.pg-sub { font-size: .78em; color: var(--text); margin-bottom: 2.2em !important; }
.pg-meta, .pg-grid { border-collapse: collapse; width: 100%; font-size: .64em; }
.pg-meta th, .pg-meta td, .pg-grid th, .pg-grid td { border: 1px solid var(--line); padding: .45em .6em; text-align: left; vertical-align: top; }
.pg-meta th { width: 40%; background: var(--tint); font-weight: 600; }
.pg-grid th { background: var(--tint); }
.pg-grid { margin-top: 1em; }
.pg-h { font-size: 1em; font-weight: 700; margin-bottom: .7em !important; }
.pg-h-small { font-size: .8em; margin-top: 1.2em !important; }
.pg-p { font-size: .68em; color: var(--text); margin-bottom: .7em !important; }
.pg-toc-list { list-style: none; padding: 0; margin: 0; font-size: .7em; display: grid; grid-template-columns: minmax(0, 1fr); gap: .45em; }
.pg-toc-list li { display: flex; gap: .4em; align-items: baseline; min-width: 0; }
.pg-toc-list li span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pg-toc-list li span:last-child { flex: none; }
.pg-dots { flex: 1; border-bottom: 1px dotted var(--on-dark); }
.pg-rules { list-style: none; padding: 0; margin: 0; font-size: .68em; display: grid; gap: .5em; color: var(--text); }
.pg-rules li { display: flex; gap: .7em; }
.pg-num { flex: none; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--red); color: var(--surface); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: .9em; }
.pg-sheet { padding: 0; width: 30em; height: 19em; }
.sh-bar { background: var(--green); color: var(--surface); font-size: .64em; padding: .55em .9em; display: flex; gap: .7em; align-items: center; }
.sh-x { font-weight: 700; background: var(--surface); color: var(--green); width: 1.5em; height: 1.5em; display: inline-flex; align-items: center; justify-content: center; border-radius: 2px; }
.sh-grid { border-collapse: collapse; width: 100%; font-size: .58em; }
.sh-grid th { background: var(--tint); font-weight: 700; text-align: left; }
.sh-grid th, .sh-grid td { border: 1px solid var(--line); padding: .5em .6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12em; }
.sh-chip { padding: .1em .6em; border-radius: 999px; font-weight: 700; background: var(--tint); color: var(--ink); }
.sh-hoch, .sh-offen { background: var(--red); color: var(--surface); }
.sh-mittel, .sh-geplant { background: var(--red-light); color: var(--red-dark); }
.sh-niedrig, .sh-umgesetzt { background: #E3EFE7; color: var(--green); }
.sh-tabs { margin-top: auto; display: flex; gap: 1px; font-size: .56em; background: var(--tint); border-top: 1px solid var(--line); }
.sh-tabs span { padding: .45em 1em; color: var(--muted); }
.sh-tabs .is-on { background: var(--surface); color: var(--green); font-weight: 700; border-bottom: 2px solid var(--green); }

.fan { margin: 0; }
.fan-stage { position: relative; height: 460px; font-size: 12.5px; }
.fan-stage .pg { position: absolute; }
.pos-sheet { right: 0; top: 10px; transform: rotate(5deg); }
.pos-body { left: 34%; top: 40px; transform: rotate(3deg); }
.pos-toc { left: 16%; top: 22px; transform: rotate(-2deg); }
.pos-cover { left: 0; top: 46px; transform: rotate(-6deg); }
.doc-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.43fr); gap: 24px; align-items: end; }
.row-page { font-size: clamp(8px, .92vw, 11.5px); }
.row-page .pg { box-shadow: var(--shadow); width: 100%; height: auto; aspect-ratio: 21 / 29.7; }
.row-page .pg-sheet { aspect-ratio: 30 / 19; }
.row-cap { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

@media (max-width: 960px) {
  /* minmax(0, 1fr): a wide table (inside .tablewrap) or a long word must not widen the column past the screen */
  .hero-in, .hero-product .hero-in, .split, .sec-dots .split, .article { grid-template-columns: minmax(0, 1fr); }
  .hero-in, .hero-product .hero-in { padding-block: 130px 64px; }
  .nav { gap: 22px; }
  .btn-top { display: none; }
  .fan-stage { height: 400px; font-size: 10.5px; }
  .grid3, .steps, .foot-in { grid-template-columns: 1fr 1fr; }
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .toc { position: static; }
  .doc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .row-page { font-size: clamp(7px, 1.9vw, 11px); }
  .closing-in, .buyline { flex-direction: column; align-items: flex-start; }
  .buyline .buy { min-width: 0; width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 16px; }
  .top-in { min-height: 84px; gap: 16px; }
  .brand img { width: 118px; }
  .nav a { font-size: .95rem; }
  .hero-center, .hero-article { padding-top: 120px; }
  .hero-home { min-height: 0; }
  .pill { font-size: .8rem; padding: 4px 12px; }
  .nav a:nth-child(n+3), .brand span { display: none; }
  .grid2, .grid3, .steps, .foot-in, .doclist { grid-template-columns: minmax(0, 1fr); }
  .sec { padding-block: 60px; }
  .fan-stage { height: 300px; font-size: 7.4px; }
  .cta-card { flex-direction: column; }
}
/* Very small phones (320 px): German compounds such as Risikomanagementmassnahmen are wider than the text column.
   Not at 375 px and up: the grids already fit there, and hyphenating short words (Vor-fall) looks restless. */
@media (max-width: 359px) {
  body { hyphens: auto; overflow-wrap: break-word; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Document pages (/vorlage/<slug>/) and hub */
.hero-facts-left { margin-top: 28px; gap: 8px 24px; }
.pricebox-kicker { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.pkbox + .pkbox { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.pkbox .pricebox-name a { color: var(--ink); }
.pkbox .price-num { font-size: 1.9rem; }
.pricebox-note { font-size: .85rem; color: var(--muted); margin: 18px 0 0; }
.outlines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.outline { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.outline h3 { display: flex; gap: 12px; align-items: flex-start; font-size: 1.08rem; }
.outline h3 > span:last-child { min-width: 0; hyphens: auto; overflow-wrap: break-word; }
.outline-meta { font-size: .9rem; color: var(--muted); }
.outline-list { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: .95rem; }
ul.outline-list { list-style: none; padding: 0; gap: 12px; }
ul.outline-doc { gap: 6px; }
.outline-list small { display: block; color: var(--muted); font-size: .86rem; }
.abschnitte { margin-top: 28px; }
.abschnitte h3 { margin-top: 0; font-size: 1.05rem; }
.prose blockquote { margin: 0 0 1.2em; padding: 18px 22px; border-left: 4px solid var(--red); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p { margin: 0 0 8px; color: var(--ink); }
.prose blockquote footer { font-size: .85rem; color: var(--muted); }
.prose code { font: 600 .92em var(--body); color: var(--red-dark); background: var(--red-light); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.buyline + .buyline { margin-top: 20px; }
.buyline h3 { margin-top: 0; }
.buyline-more { margin: 10px 0 0; font-size: .9rem; }
.related { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.related li { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.related a { font-weight: 700; color: var(--ink); }
.related small { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.doc-row.dr-auto { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.dr-auto .row-cell { flex: 1 1 0; min-width: 0; max-width: 255px; }
.dr-auto .row-cell.is-sheet { flex-grow: 1.43; max-width: 365px; }
@media (max-width: 960px) {
  .outlines { grid-template-columns: minmax(0, 1fr); }
  .dr-auto .row-cell { flex: 1 1 40%; max-width: none; }
  .dr-auto .row-cell.is-sheet { flex-basis: 100%; }
}
/* Five header links since the hub /vorlage/ (WEB-37): the word mark next to the logo yields first, then the gaps shrink */
@media (max-width: 1180px) and (min-width: 641px) {
  .brand span { display: none; }
  .nav { gap: 24px; }
}
@media (max-width: 800px) and (min-width: 641px) {
  .nav { gap: 16px; }
  .nav a { font-size: .95rem; }
}

/* ---------- Ausbau 05.10.2026: before the purchase, company card, sample page ---------- */
.icard .btn, .cta-card .btn { margin-top: 18px; }
.icard .ico-circle + h3 { margin-top: 20px; }
.firma { padding: 30px; margin-top: 36px; max-width: 860px; }
.firma .kicker { margin-bottom: 10px; }
.firma p { margin: 0 0 12px; }
.firma p:last-child { margin-bottom: 0; }
.firma .name-img { height: auto; }
.cta-card h3 { margin-top: 0; font-size: 1.25rem; }
.buy-fragen a { color: var(--red); text-decoration: underline; }
.muster-note { margin: 16px 0 0; font-size: .9rem; color: var(--on-dark); }
.seitenbild { display: block; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.seitenbild img { display: block; width: 100%; height: auto; }
.seitenbild:hover, .seitenbild:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.doc-row-bilder { align-items: start; }
.doc-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; }
.deckblatt { margin: 0; max-width: 380px; justify-self: center; }
.deckblatt figcaption { font-size: .85rem; color: var(--muted); margin-top: 12px; }
@media (max-width: 720px) {
  .doc-row-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .doc-row .row-cell.is-sheet { grid-column: 1 / -1; }
}
