/* EPIC Infra DACH — site styles
   Layout concept: a dark navy "control room" world; the signature is the hop trace
   from thin client to database, drawn as a vertical route with mono hop numbers. */
/* Self-hosted fonts (SIL Open Font License, see assets/fonts). No requests to third-party font servers. */
@font-face { font-family: "IBM Plex Serif"; src: url("fonts/ibm-plex-serif-700.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-400.woff") format("woff"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-700.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-400-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-400.woff") format("woff"); font-weight: 400 500; font-style: normal; font-display: swap; }
:root {
  --ink: #0a1628;        /* page ground */
  --band: #0e1f3a;       /* brand navy, alternate bands */
  --panel: #13284a;      /* raised surfaces */
  --line: #24395c;       /* rules and borders */
  --text: #edf1f7;
  --muted: #a7b3c6;
  --teal: #45b8af;       /* accent */
  --teal-soft: #9fd8d1;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 62ch; }
.measure { max-width: 66ch; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--teal); color: var(--ink); padding: 8px 12px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(10, 22, 40, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; white-space: nowrap; }
.brand b { font-family: var(--serif); font-size: 1.375rem; font-weight: 700; letter-spacing: 0.02em; }
.brand span { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.9375rem; color: var(--muted); padding: 8px 12px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); }
.lang { display: flex; font-family: var(--mono); font-size: 0.8125rem; border: 1px solid var(--line); margin-left: 8px; }
.lang a, .lang span { padding: 5px 9px; text-decoration: none; color: var(--muted); }
.lang span { background: var(--line); color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: 13px 22px; border: 1px solid var(--teal); background: var(--teal); color: var(--ink); transition: background .2s, color .2s; }
.btn:hover { background: var(--teal-soft); border-color: var(--teal-soft); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--teal); color: var(--teal-soft); }
.btn.small { padding: 9px 14px; font-size: 0.875rem; }
.btn svg { width: 16px; height: 16px; flex: none; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line); padding: 8px 12px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); background: var(--band); border: 1px solid var(--line); padding: 10px; display: grid; gap: 2px; }
.menu-panel a { text-decoration: none; padding: 10px 12px; color: var(--text); }
.menu-panel a[aria-current="page"] { color: var(--teal); }
.menu-panel .btn { margin-top: 8px; justify-content: center; color: var(--ink); }
.menu-panel .lang { margin: 8px 0 0; width: max-content; }
@media (max-width: 940px) { .nav, .header-cta { display: none; } .menu { display: block; } }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--band); border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art picture { display: block; width: 100%; height: 100%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--band) 0%, rgba(14,31,58,.92) 38%, rgba(14,31,58,.35) 72%, rgba(14,31,58,.15) 100%); }
.hero .wrap { padding-block: 112px 96px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 13ch; margin-top: 20px; }
.hero .lead { margin-top: 24px; color: #c9d3e1; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero .independent { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 640px; font-size: 0.9375rem; color: var(--muted); display: flex; gap: 12px; }
.hero .independent b { color: var(--text); font-weight: 600; }
@media (max-width: 720px) { .hero::after { background: linear-gradient(180deg, rgba(14,31,58,.78), rgba(14,31,58,.94)); } .hero .wrap { padding-block: 72px 64px; } }

/* Page header (inner pages) */
.page-head { background: var(--band); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 80px 64px; display: grid; gap: 20px; }
.page-head .wrap > * { min-width: 0; }
.page-head h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); max-width: 20ch; hyphens: auto; overflow-wrap: anywhere; }

/* Sections */
section.block { padding-block: 96px; }
section.block.alt { background: var(--band); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.875rem, 3.6vw, 2.625rem); }
@media (max-width: 720px) { section.block { padding-block: 64px; } .section-head { margin-bottom: 36px; } }

/* Hop trace (signature) */
.trace-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
.trace-grid .section-head { position: sticky; top: 110px; margin-bottom: 0; }
@media (max-width: 900px) { .trace-grid { grid-template-columns: 1fr; gap: 36px; } .trace-grid .section-head { position: static; } }
.trace { list-style: none; margin: 0; padding: 0; position: relative; }
.trace::before { content: ""; position: absolute; left: 27px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--teal), var(--line)); transform-origin: top; animation: draw 1.6s ease-out both; }
@keyframes draw { from { transform: scaleY(0.04); } to { transform: scaleY(1); } }
.trace li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding-block: 14px; }
.hop { font-family: var(--mono); font-size: 0.8125rem; width: 56px; height: 30px; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--teal); color: var(--teal-soft); position: relative; z-index: 1; }
.alt .hop { background: var(--band); }
.trace a.hop-body { display: grid; gap: 4px; text-decoration: none; padding: 2px 0 14px; border-bottom: 1px solid var(--line); }
.trace a.hop-body:hover h3 { color: var(--teal-soft); }
.trace h3 { font-size: 1.3125rem; transition: color .2s; }
.trace .comp { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.trace .ends { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-left: 76px; }

/* Cards with engraving images */
.figure { margin: 0; background: var(--band) repeating-linear-gradient(135deg, transparent 0 10px, rgba(69,184,175,.05) 10px 11px); border: 1px solid var(--line); aspect-ratio: 3 / 2; overflow: hidden; position: relative; max-width: 100%; }
.figure picture { display: block; width: 100%; height: 100%; }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure.tall { aspect-ratio: 1200 / 912; }
.figure.wide { aspect-ratio: 16 / 9; }
.areas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.area { grid-column: span 2; display: grid; gap: 18px; align-content: start; }
.area:nth-child(4), .area:nth-child(5) { grid-column: span 3; }
.area h3 { font-size: 1.375rem; }
.area .eyebrow { margin-bottom: -8px; }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr 1fr; } .area, .area:nth-child(4), .area:nth-child(5) { grid-column: span 1; } .area:nth-child(5) { grid-column: span 2; } }
@media (max-width: 600px) { .areas { grid-template-columns: 1fr; } .area:nth-child(5) { grid-column: span 1; } }

/* Public vs private */
.split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.split > div { padding: 40px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.split > div + div { border-left: 1px solid var(--line); background: var(--panel); }
.split h3 { font-size: 1.5rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; }
.ticks li::before { content: ""; width: 7px; height: 7px; background: var(--teal); margin-top: 0.62em; }
.ticks.lock li::before { background: transparent; border: 1.5px solid var(--teal); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split > div + div { border-left: 0; border-top: 1px solid var(--line); } .split > div { padding: 28px 22px; } }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.audience article { display: grid; gap: 14px; align-content: start; }
.audience h3 { font-size: 1.25rem; }
.audience .who { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 960px) { .audience { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audience { grid-template-columns: 1fr; } }

/* CTA band */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.cta h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; gap: 36px; } }

/* Infrastructure layers */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.toc a { font-family: var(--mono); font-size: 0.8125rem; text-decoration: none; border: 1px solid var(--line); padding: 7px 11px; color: var(--muted); }
.toc a:hover { border-color: var(--teal); color: var(--text); }
.layer { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 32px; padding-block: 56px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.layer:first-child { border-top: 0; padding-top: 0; }
.layer .hop { width: 72px; height: 36px; font-size: 0.875rem; }
.layer-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px 56px; }
.layer-body .intro { grid-column: 1 / -1; display: grid; gap: 14px; }
.layer h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.layer h3 { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { font-family: var(--mono); font-size: 0.8125rem; padding: 4px 9px; background: var(--panel); border: 1px solid var(--line); }
.impact { border-left: 2px solid var(--teal); padding-left: 18px; color: var(--muted); }
.layer-side { display: grid; gap: 28px; align-content: start; }
@media (max-width: 860px) { .layer { grid-template-columns: 1fr; gap: 18px; } .layer-body { grid-template-columns: 1fr; gap: 28px; } }
.note { font-size: 0.9375rem; color: var(--muted); border: 1px solid var(--line); padding: 18px 20px; max-width: 760px; }

.cross { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cross article { background: var(--band); padding: 32px; display: grid; gap: 12px; align-content: start; }
.cross h3 { font-size: 1.375rem; }
@media (max-width: 760px) { .cross { grid-template-columns: 1fr; } .cross article { padding: 24px 20px; } }

.fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 22px; }
.fields article { display: grid; gap: 12px; align-content: start; }
.fields h3 { font-size: 1.125rem; }
.fields p { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 1060px) { .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.roles article { background: var(--ink); padding: 32px; display: grid; gap: 14px; align-content: start; }
.roles h3 { font-size: 1.5rem; }
.roles .abbr { font-family: var(--mono); font-size: 0.75rem; color: var(--teal); letter-spacing: 0.12em; text-transform: uppercase; }
.roles dl { margin: 6px 0 0; display: grid; gap: 12px; }
.roles dt { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.roles dd { margin: 2px 0 0; }
.roles article:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } .roles article { padding: 24px 20px; } }

.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); }
.matrix-wrap:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.matrix-hint { display: none; margin: 0 0 10px; font-size: 0.875rem; color: var(--muted); }
@media (max-width: 840px) { .matrix-hint { display: block; } }
table.matrix { border-collapse: collapse; width: 100%; min-width: 780px; font-size: 0.9375rem; }
.matrix th, .matrix td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: center; }
.matrix thead th { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); vertical-align: bottom; background: var(--band); }
.matrix tbody th { text-align: left; font-weight: 500; white-space: nowrap; }
.matrix tbody th .hop { display: inline-grid; width: 36px; height: 24px; font-size: 0.6875rem; margin-right: 10px; vertical-align: middle; }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.dot.lead { background: var(--teal); }
.dot.with { border: 1.5px solid var(--teal); }
.legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 14px; font-size: 0.875rem; color: var(--muted); }
.legend span { display: inline-flex; gap: 8px; align-items: center; }

/* Community page */
.two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 40px; } }
.prose { display: grid; gap: 18px; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: 18px; }
.prose h2:first-child { margin-top: 0; }
.aside { background: var(--panel); border: 1px solid var(--line); padding: 30px; display: grid; gap: 18px; }
.aside h3 { font-size: 1.25rem; }
.notice { border: 1px solid var(--teal); padding: 30px; display: grid; gap: 12px; background: var(--band); }
.notice h3 { font-size: 1.375rem; }
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.principles li { border-top: 1px solid var(--line); padding-block: 20px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 24px; }
.principles b { font-family: var(--serif); font-size: 1.1875rem; font-weight: 600; }
@media (max-width: 700px) { .principles li { grid-template-columns: 1fr; gap: 6px; } }
.mail { font-family: var(--mono); font-size: 1rem; color: var(--teal-soft); user-select: all; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--line); padding: 6px 12px; font-size: 0.9375rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--band); font-size: 0.9375rem; }
.site-footer .wrap { padding-block: 56px 40px; display: grid; gap: 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot-grid h2 { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--text); }
.foot-grid a:hover { color: var(--teal-soft); }
.disclaimer { border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 0.8125rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.disclaimer p { max-width: 70ch; }
.disclaimer a { white-space: nowrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* Click path: layers beside the path */
.ends.side-label { margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--line); }
.trace.side::before { background: none; border-left: 2px dashed var(--line); width: 0; animation: none; }
.trace.side .hop { border-style: dashed; border-color: var(--line); color: var(--muted); }
.cross.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cross.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cross.three { grid-template-columns: 1fr; } }
.market-h { font-size: 1.375rem; margin-top: 18px; }
.market { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.market > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.market dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); padding-top: 4px; }
.market dd { margin: 0; }
.small { font-size: 0.875rem; }
@media (max-width: 520px) { .market > div { grid-template-columns: 1fr; gap: 4px; } }

/* Reflow: long German compounds must wrap at 320 px (WCAG 1.4.10) */
.two > *, .split > *, .cross > *, .roles > *, .layer-body > *, .notice > *, .aside > *, .prose > *,
.cross article > *, .roles article > *, .fields article > *, .audience article > *, .area > * { min-width: 0; }
p, li, dd, h1, h2, h3 { overflow-wrap: break-word; }
:lang(de) p, :lang(de) li, :lang(de) dd, :lang(de) h2, :lang(de) h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }

/* Legal pages: a readable document column on the same dark ground */
.prose.legal { max-width: 68ch; gap: 20px; }
.prose.legal h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose.legal p, .prose.legal li, .prose.legal address { color: var(--muted); }
.prose.legal ul { display: grid; gap: 8px; margin: 0; padding-left: 1.2em; }
.prose.legal li::marker { color: var(--teal); }
.prose.legal address { font-style: normal; border-left: 2px solid var(--line); padding-left: 18px; }
.prose.legal a { color: var(--teal-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose.legal a:hover { color: var(--text); }
@media (max-width: 600px) { .prose.legal h2 { margin-top: 20px; padding-top: 18px; } }
