/*
 * webmaster-vitaliy.de – Gestaltung (V3, gemeinsames Stylesheet aller Seiten)
 * Bauhaus / Konstruktivismus / Editorial: Altpapier, Schwarz, Zinnoberrot.
 * Keine Verläufe, keine Schatten, keine Rundungen, keine Glaseffekte.
 */

/* ---------- Schriften (lokal, SIL OFL 1.1 – Lizenzen in fonts/) ---------- */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url('fonts/oswald-latin-wght-normal.woff2') format('woff2-variations');
  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: 'Oswald';
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url('fonts/oswald-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url('fonts/oswald-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('fonts/source-serif-4-latin-wght-normal.woff2') format('woff2-variations');
  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: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('fonts/source-serif-4-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/ibm-plex-mono-latin-400-normal.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: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/ibm-plex-mono-latin-500-normal.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: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Kontraste gegen --paper: ink 14,5:1 · pencil 6,0:1 · red-ui 5,0:1 · red 3,8:1 (nur Flächen und große Schrift) */
  --paper: #ece3cf;
  --paper-deep: #e2d6bb;
  --ink: #16130f;
  --pencil: #5b5246;
  --red: #d23a1c;      /* Zinnober: Flächen, Illustration, große Schrift */
  --red-ui: #b22e17;   /* Zinnober, abgedunkelt: kleine Schrift, Flächen mit heller Schrift */
  --red-light: #f08a6e; /* nur auf Schwarz: 6,6:1 */

  --display: 'Oswald', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --rule: 1px solid var(--ink);
  --rule-strong: 3px solid var(--ink);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-shape: 520ms;
  --t-fade: 220ms;

  color-scheme: light;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  /* Papierstruktur: vorgerenderte Kachel der zwei SVG-Rauschebenen (web/tools/texture.mjs), kein Verlauf */
  background-image: url("paper.webp");
  font-family: var(--serif);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red-ui); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 30;
  padding: 12px 16px; background: var(--ink); color: var(--paper);
  font: 500 0.875rem/1 var(--mono);
}
.skip-link:focus { top: 12px; }
[id] { scroll-margin-top: 24px; }

.masthead, .crumbs, .hero, .system, .areas, .products-overview, .teaser-pair,
.page-head, .block, .about, .colophon { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Kopf ---------- */
.masthead {
  padding-top: 22px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.masthead::after {
  content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0;
  height: 3px; background: var(--ink);
}
.wordmark {
  font: 700 clamp(1.25rem, 1rem + 0.9vw, 1.75rem)/1 var(--display);
  text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none;
  white-space: nowrap; display: inline-block; padding: 8px 0;
}
.mainnav ul { display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 1.7vw, 28px); justify-content: flex-end; }
.mainnav a {
  display: inline-block; padding: 10px 0;
  font: 500 0.8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.07em;
  text-decoration: none; border-bottom: 2px solid transparent;
}
.mainnav a[aria-current] { border-bottom-color: var(--red); }
.mainnav a[aria-current='page'] { color: var(--red-ui); }

.nav-toggle {
  display: none;
  align-items: center; gap: 12px; min-height: 44px; padding: 0 0 0 14px;
  background: transparent; border: 0; border-left: var(--rule); cursor: pointer;
  font: 500 0.8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
}
.nav-toggle[hidden] { display: none !important; }
.nav-toggle-icon { width: 22px; height: 14px; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); position: relative; }
.nav-toggle-icon::after { content: ''; position: absolute; left: 0; right: 0; top: 2.5px; height: 3px; background: var(--red); }
.nav-toggle[aria-expanded='true'] .nav-toggle-icon { border-color: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle-icon::after { transform: rotate(45deg); background: var(--ink); }
.nav-toggle[aria-expanded='true'] .nav-toggle-icon::before { content: ''; position: absolute; left: 0; right: 0; top: 2.5px; height: 3px; background: var(--red); transform: rotate(-45deg); }

@media (hover: hover) and (pointer: fine) {
  .mainnav a { transition: color var(--t-fade) ease, border-color var(--t-fade) ease; }
  .mainnav a:hover { color: var(--red-ui); border-bottom-color: var(--red-ui); }
}

/* ---------- Brotkrumen ---------- */
.crumbs { padding-top: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font: 400 0.75rem/1.4 var(--mono); letter-spacing: 0.04em; color: var(--pencil); }
.crumbs li + li::before { content: '/'; margin: 0 10px; color: var(--red-ui); }
.crumbs a { display: inline-block; padding: 6px 0; }
.crumbs [aria-current] { display: inline-block; padding: 6px 0; color: var(--ink); }

/* ---------- Schaltflächen und Links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 22px 0 24px;
  background: var(--ink); color: var(--paper);
  font: 500 1rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; border: 2px solid var(--ink);
}
.btn--red { background: var(--red-ui); border-color: var(--red-ui); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn-arrow { font-family: var(--mono); font-size: 1.125rem; }
.btn:focus-visible { outline-offset: 4px; }
.btn--red:focus-visible { outline-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn { transition: background-color var(--t-fade) ease, color var(--t-fade) ease, border-color var(--t-fade) ease; }
  .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.solution-link, .text-link {
  display: inline-flex; gap: 8px; padding: 12px 0 6px;
  font: 500 0.8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; border-bottom: 2px solid var(--red);
}
.text-link { padding: 8px 0 4px; }
@media (hover: hover) and (pointer: fine) {
  .solution-link, .text-link { transition: color var(--t-fade) ease; }
  .solution-link:hover, .text-link:hover { color: var(--red-ui); }
}
.link-button {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(24px, 2.6vw, 40px);
  padding-bottom: clamp(28px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "title   figure"
    "panel   figure"
    "filters filters";
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.hero-title { grid-area: title; min-width: 0; }
.theme-panel { grid-area: panel; min-width: 0; }
.filters { grid-area: filters; }
.theme-links { grid-area: filters; }

.hero-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.5rem, 4.6vw, 6.5rem);
  line-height: 1; letter-spacing: -0.005em; text-transform: uppercase;
}
.hero-title span { display: block; }
.hero-title-red { color: var(--red); }

.theme-panel {
  margin-top: clamp(22px, 2.4vw, 36px);
  padding-top: 18px;
  border-top: var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 40rem;
}
.theme-name {
  font: 600 clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem)/1 var(--display);
  text-transform: uppercase; letter-spacing: 0.01em; color: var(--red-ui);
}
.theme-text { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); line-height: 1.45; text-wrap: pretty; }

.lead {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 14px 0; border-top: var(--rule); border-bottom: var(--rule);
}
.lead-icon { width: 64px; height: 64px; color: var(--ink); }
.lead-label {
  display: block;
  font: 400 0.6875rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--pencil);
}
.lead-name { font: 600 1.375rem/1.15 var(--display); text-transform: uppercase; letter-spacing: 0.01em; margin-top: 2px; }
.lead-name a { display: inline-block; padding: 2px 0; text-decoration: none; border-bottom: 2px solid var(--red); }
.lead-note { font-size: 0.975rem; line-height: 1.45; margin-top: 4px; }
.lead-status { margin-top: 8px; }
.theme-services { font-size: 0.975rem; line-height: 1.7; }
.theme-services .lead-label { margin-bottom: 2px; }
.theme-services a { display: inline-block; padding: 2px 0; }
.theme-panel .btn { justify-self: start; }

/* ---------- Hero-Illustration ---------- */
.hero-figure {
  grid-area: figure;
  min-width: 0;
  width: min(100%, clamp(340px, calc(100svh - 250px), 680px));
  justify-self: end;
}
.hero-art { width: 100%; height: auto; aspect-ratio: 1; overflow: hidden; }
.hero-art .k { fill: var(--ink); }
.hero-art .r { fill: var(--red); }
.hero-art .p { fill: var(--paper); }
.hero-art .ks { stroke: var(--ink); }
.hero-art .ps { stroke: var(--paper); }
.hero-art path:not([class*='k']):not([class*='r']):not([class*='p']) { fill: none; }
.art-guides { stroke: var(--ink); stroke-width: 1; fill: none; opacity: 0.22; }
.art-disc { fill: var(--red); }
.art-bar, .art-block { fill: var(--ink); }
.art-disc, .art-bar, .art-block {
  transform-box: fill-box; transform-origin: center;
  transition: transform var(--t-shape) var(--ease);
}
.hero-art[data-theme='facility'] .art-disc { transform: translate(110px, -120px) scale(0.75); }
.hero-art[data-theme='facility'] .art-bar { transform: translate(0, 190px); }
.hero-art[data-theme='facility'] .art-block { transform: translate(190px, 140px) scale(0.7); }
.hero-art[data-theme='buchung'] .art-disc { transform: translate(-120px, -120px) scale(0.8); }
.hero-art[data-theme='buchung'] .art-bar { transform: translate(-230px, 0) rotate(90deg); }
.hero-art[data-theme='buchung'] .art-block { transform: translate(200px, 180px) scale(0.6); }
.hero-art[data-theme='automatisierung'] .art-disc { transform: scale(0.62); }
.hero-art[data-theme='automatisierung'] .art-bar { transform: none; }
.hero-art[data-theme='automatisierung'] .art-block { transform: translate(190px, -170px) scale(0.55); }
.hero-art[data-theme='qr-zugang'] .art-disc { transform: translate(130px, 120px) scale(0.7); }
.hero-art[data-theme='qr-zugang'] .art-bar { transform: translate(-150px, 170px) rotate(-50deg); }
.hero-art[data-theme='qr-zugang'] .art-block { transform: translate(-210px, -210px) scale(0.45); }
.hero-art[data-theme='datenintegration'] .art-disc { transform: scale(0.4); }
.hero-art[data-theme='datenintegration'] .art-bar { transform: rotate(90deg); }
.hero-art[data-theme='datenintegration'] .art-block { transform: translate(0, -200px) scale(0.5); }
.hero-art[data-theme='vertraege'] .art-disc { transform: translate(-170px, 150px) scale(0.5); }
.hero-art[data-theme='vertraege'] .art-bar { transform: translate(0, 236px); }
.hero-art[data-theme='vertraege'] .art-block { transform: translate(200px, -200px) scale(0.5); }
.hero-art[data-theme='controlling'] .art-disc { transform: translate(180px, -180px) scale(0.42); }
.hero-art[data-theme='controlling'] .art-bar { transform: translate(0, 214px); }
.hero-art[data-theme='controlling'] .art-block { transform: translate(-220px, 220px) scale(0.4); }
.hero-art[data-theme='ki-dokumente'] .art-disc { transform: translate(-160px, -170px) scale(0.45); }
.hero-art[data-theme='ki-dokumente'] .art-bar { transform: translate(0, 200px) rotate(-8deg); }
.hero-art[data-theme='ki-dokumente'] .art-block { transform: translate(220px, 200px) scale(0.42); }
.hero-art[data-theme='pdf-formulare'] .art-disc { transform: translate(-170px, -190px) scale(0.42); }
.hero-art[data-theme='pdf-formulare'] .art-bar { transform: translate(-40px, 250px); }
.hero-art[data-theme='pdf-formulare'] .art-block { transform: translate(-200px, 190px) scale(0.48); }
.motif { opacity: 0; transition: opacity var(--t-fade) ease; }
.hero-art[data-show='immobilien'] [data-motif='immobilien'],
.hero-art[data-show='hotellerie'] [data-motif='hotellerie'],
.hero-art[data-show='automatisierung'] [data-motif='automatisierung'],
.hero-art[data-show='digitalisierung'] [data-motif='digitalisierung'],
.hero-art[data-show='datenintegration'] [data-motif='datenintegration'],
.hero-art[data-show='vertraege'] [data-motif='vertraege'],
.hero-art[data-show='controlling'] [data-motif='controlling'],
.hero-art[data-show='ki'] [data-motif='ki'],
.hero-art[data-show='formulare'] [data-motif='formulare'] {
  opacity: 1; transition-duration: 320ms; transition-delay: 140ms;
}
.hero-caption {
  margin-top: 12px; padding-top: 10px; border-top: var(--rule);
  font: 400 0.75rem/1.4 var(--mono); color: var(--pencil); letter-spacing: 0.04em;
}

/* ---------- Themenfilter ---------- */
.filters { margin-top: 28px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.filter {
  position: relative; display: flex; align-items: center;
  min-height: 72px; padding: 16px 18px; margin: 0;
  background: transparent; border: 0;
  border-top: var(--rule-strong); border-bottom: var(--rule); border-left: var(--rule);
  text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.filter:first-child { border-left: 0; }
.filter-name {
  font: 500 clamp(1.0625rem, 0.8rem + 0.7vw, 1.5rem)/1.05 var(--display);
  text-transform: uppercase; letter-spacing: 0.02em; hyphens: manual; overflow-wrap: anywhere;
}
.filter[aria-selected='true'] { background: var(--red-ui); color: var(--paper); border-top-color: var(--red-ui); }
.filter[aria-selected='true']::before {
  content: ''; position: absolute; left: 18px; top: -15px; width: 0; height: 0;
  border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 12px solid var(--red-ui);
}
.filter:focus-visible { outline: 3px solid var(--ink); outline-offset: -8px; }
.filter[aria-selected='true']:focus-visible { outline-color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .filter { transition: background-color var(--t-fade) ease, color var(--t-fade) ease; }
  .filter:not([aria-selected='true']):hover { color: var(--red-ui); background: var(--paper-deep); }
}
/* Ohne JavaScript: Lösungsbereiche als Links statt Filter */
.theme-links { display: none; margin-top: 28px; border-top: var(--rule-strong); }
.theme-links ul { display: flex; flex-wrap: wrap; gap: 0 28px; }
.theme-links a { display: inline-block; padding: 14px 0; font: 500 1.25rem/1 var(--display); text-transform: uppercase; }
html:not(.js) .filters { display: none; }
html:not(.js) .theme-links { display: block; }

/* ---------- Abschnittsköpfe ---------- */
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: 16px 32px; padding-bottom: 20px;
}
.section-title {
  font: 600 clamp(2rem, 1rem + 4vw, 4.5rem)/1.12 var(--display);
  text-transform: uppercase; letter-spacing: 0; hyphens: manual;
}
.section-title--m { font-size: clamp(1.625rem, 1rem + 2vw, 2.75rem); }
.section-aside {
  font: 400 0.75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--pencil); text-align: right;
}
#solutions-theme { color: var(--red-ui); }

/* ---------- Ein System. Viele Möglichkeiten. ---------- */
.system { padding-top: clamp(56px, 7vw, 112px); padding-bottom: clamp(40px, 5vw, 72px); }
.solutions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--rule-strong); }
.solution { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 28px; border-left: var(--rule); min-width: 0; }
.solution:first-child { border-left: 0; padding-left: 0; }
.solution-art { width: 100%; max-width: 200px; aspect-ratio: 1; height: auto; color: var(--ink); margin-bottom: 8px; }
.solution-meta { font: 500 0.75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--red-ui); }
.solution-title { font: 600 clamp(1.375rem, 1.1rem + 0.6vw, 1.75rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; hyphens: manual; }
.solution-text { font-size: 1rem; line-height: 1.5; text-wrap: pretty; }
.solution-status { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.solution-link { align-self: flex-start; }

.service-strip { margin-top: 28px; }
.strip-title { font: 500 0.75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--pencil); padding-bottom: 10px; }
.service-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule-strong); }
.service-links li { min-width: 0; border-left: var(--rule); }
.service-links li:first-child { border-left: 0; }
.service-links a {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "g name arrow" "g text text";
  gap: 4px 14px; padding: 18px 18px 20px; text-decoration: none; height: 100%;
}
.service-links li:first-child a { padding-left: 0; }
.service-links .glyph { grid-area: g; width: 44px; height: 44px; color: var(--ink); }
.sl-name { grid-area: name; font: 600 1.25rem/1.1 var(--display); text-transform: uppercase; }
.sl-text { grid-area: text; font-size: 0.9375rem; line-height: 1.45; color: var(--pencil); }
.service-links a > span[aria-hidden] { grid-area: arrow; font-family: var(--mono); color: var(--red-ui); }
.service-links--plain { grid-template-columns: minmax(0, 1fr); }
.service-links--plain li { border-left: 0; border-bottom: var(--rule); }
.service-links--plain a { display: flex; justify-content: space-between; padding: 16px 0; font: 600 1.25rem/1.1 var(--display); text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) {
  .service-links a { transition: background-color var(--t-fade) ease; }
  .service-links a:hover { background: var(--paper-deep); }
  .service-links a:hover .sl-name { color: var(--red-ui); }
}

/* ---------- Drei Arbeitsbereiche ---------- */
.areas { padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(40px, 5vw, 72px); }
.area-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule-strong); }
.area { display: flex; flex-direction: column; gap: 12px; padding: 28px 28px 8px; border-left: var(--rule); min-width: 0; }
.area:first-child { border-left: 0; padding-left: 0; }
.area-mark { display: block; height: 88px; position: relative; margin-bottom: 8px; }
.area-mark::before { content: ''; position: absolute; left: 0; bottom: 0; }
.area--block .area-mark::before { width: 72px; height: 72px; background: var(--ink); }
.area--block .area-mark::after { content: ''; position: absolute; left: 56px; bottom: 56px; width: 32px; height: 32px; background: var(--red); }
.area--disc .area-mark::before { width: 84px; height: 84px; clip-path: circle(50%); background: var(--red); }
.area--disc .area-mark::after { content: ''; position: absolute; left: 60px; bottom: 0; width: 64px; height: 14px; background: var(--ink); }
.area--bar .area-mark::before { width: 140px; height: 22px; background: var(--ink); bottom: 30px; transform: rotate(-24deg); transform-origin: left center; }
.area--bar .area-mark::after { content: ''; position: absolute; left: 112px; bottom: 0; width: 26px; height: 26px; background: var(--red); }
.area-name { font: 600 clamp(1.5rem, 1.1rem + 1vw, 2.125rem)/1.05 var(--display); text-transform: uppercase; hyphens: manual; }
.area-text { font-size: 1.0625rem; line-height: 1.5; max-width: 30em; }
.area .solution-link { margin-top: auto; }

/* ---------- Produktkacheln ---------- */
.products-overview { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--rule-strong); }
.tile { border-bottom: var(--rule); border-left: var(--rule); min-width: 0; }
.tile:nth-child(4n + 1) { border-left: 0; }
.tile-link {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "art name" "art claim" "art status";
  gap: 4px 16px; align-content: start; height: 100%; padding: 20px 18px 22px; text-decoration: none;
}
.tile:nth-child(4n + 1) .tile-link { padding-left: 0; }
.tile-art { grid-area: art; width: 72px; height: 72px; color: var(--ink); }
.tile-name { grid-area: name; font: 600 1.375rem/1.05 var(--display); text-transform: uppercase; }
.tile-claim { grid-area: claim; font-size: 0.9375rem; line-height: 1.4; }
.tile-status { grid-area: status; margin-top: 6px; }
@media (hover: hover) and (pointer: fine) {
  .tile-link { transition: background-color var(--t-fade) ease; }
  .tile-link:hover { background: var(--paper-deep); }
  .tile-link:hover .tile-name { color: var(--red-ui); }
}
.tiles--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--compact .tile:nth-child(4n + 1) { border-left: var(--rule); }
.tiles--compact .tile:nth-child(4n + 1) .tile-link { padding-left: 18px; }
.tiles--compact .tile:nth-child(3n + 1) { border-left: 0; }
.tiles--compact .tile:nth-child(3n + 1) .tile-link { padding-left: 0; }

/* ---------- Teaser ---------- */
.teaser-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding-top: clamp(24px, 3vw, 48px); padding-bottom: clamp(24px, 3vw, 48px); }
.teaser { display: flex; flex-direction: column; gap: 14px; padding: 28px 32px 8px 0; border-top: var(--rule-strong); }
.teaser + .teaser { padding-left: 32px; border-left: var(--rule); }
.teaser > p { max-width: 36rem; }
.teaser-title { font: 600 clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem)/1 var(--display); text-transform: uppercase; }
.teaser .solution-link { align-self: flex-start; margin-top: auto; }
.about-lead { font: 500 clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem)/1.25 var(--display); color: var(--red-ui); }

/* ---------- Status und Kennzeichnungen ---------- */
.status, .tag {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 0.6875rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; vertical-align: middle;
}
.status::before { content: ''; width: 9px; height: 9px; flex: none; background: var(--ink); }
.status--live::before { background: var(--red); }
.status--dev::before { background: transparent; border: 2px solid var(--ink); }
.tag { padding: 3px 6px; white-space: nowrap; }
.tag--planned { border: 1.5px solid var(--red-ui); color: var(--red-ui); }
.tag--idea { border: 1.5px dashed var(--ink); }
.tag--existing { background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); }
.tag--none { border: 1.5px solid var(--pencil); color: var(--pencil); }

/* ---------- Kontaktblock ---------- */
.contact {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin-top: clamp(32px, 4vw, 64px);
  margin-bottom: clamp(40px, 5vw, 80px);
  margin-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 56px);
  background: var(--ink); color: var(--paper);
  position: relative; display: grid; gap: 16px;
}
.contact::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: clamp(48px, 8vw, 120px); height: clamp(48px, 8vw, 120px); background: var(--red);
}
.contact .section-title { color: var(--paper); padding-right: clamp(48px, 8vw, 120px); }
.contact-text { max-width: 34em; }
.contact-mail a {
  font: 600 clamp(1.5rem, 0.6rem + 4.6vw, 4.75rem)/1.05 var(--display);
  text-transform: uppercase; text-decoration: none; overflow-wrap: anywhere; border-bottom: 4px solid var(--red);
}
.contact a:focus-visible { outline-color: var(--paper); }
.contact-more a { display: inline-block; padding: 10px 0; font: 500 0.8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper); }
.contact-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; border-top: 1px solid var(--paper); padding-top: 16px; }
.contact-facts dt { font: 500 0.6875rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--red-light); }
.contact-facts a { display: inline-block; padding: 6px 0; }
@media (hover: hover) and (pointer: fine) {
  .contact-mail a, .contact-more a { transition: color var(--t-fade) ease; }
  .contact-mail a:hover, .contact-more a:hover { color: var(--red-light); }
}

/* ---------- Unterseiten: Kopf und Blöcke ---------- */
.page-head {
  padding-top: clamp(28px, 4vw, 64px); padding-bottom: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center;
}
.page-head--art { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.page-head-copy { display: grid; gap: 18px; max-width: 52rem; }
.page-title {
  font: 600 clamp(2.5rem, 1.2rem + 5vw, 6rem)/1 var(--display);
  text-transform: uppercase; letter-spacing: -0.005em; hyphens: manual; overflow-wrap: break-word;
}
.page-lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); line-height: 1.45; max-width: 38em; text-wrap: pretty; }
.page-meta { display: flex; gap: 16px; align-items: center; }
.page-head-art { justify-self: end; width: min(100%, 460px); }
.head-ill { width: 100%; height: auto; aspect-ratio: 1; color: var(--ink); }
.head-glyph { width: min(100%, 260px); height: auto; aspect-ratio: 1; color: var(--ink); margin-left: auto; }
.head-figure .hero-art { width: 100%; }

.block { padding-top: clamp(28px, 3.4vw, 52px); padding-bottom: clamp(28px, 3.4vw, 52px); }
.block > .section-head { border-top: var(--rule-strong); padding-top: 16px; }
.block .section-title { font-size: clamp(1.625rem, 1rem + 2vw, 2.75rem); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(24px, 4vw, 64px); }
.split > .section-head { align-items: start; grid-template-columns: minmax(0, 1fr); }
.split > :not(.section-head) { border-top: var(--rule-strong); padding-top: 20px; min-width: 0; }
.prose { display: grid; gap: 1em; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem); }
.prose p { max-width: 46rem; text-wrap: pretty; }
.block-text { max-width: 44rem; padding-bottom: 20px; }
.block-note { margin-top: 18px; font-size: 0.9375rem; color: var(--pencil); max-width: 44rem; }
.block-more { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; }

.problem-list { display: grid; }
.problem-list li { position: relative; padding: 14px 0 14px 30px; border-bottom: var(--rule); line-height: 1.45; }
.problem-list li:first-child { padding-top: 0; }
.problem-list li::before { content: ''; position: absolute; left: 0; top: 21px; width: 12px; height: 12px; background: var(--red); }
.problem-list li:first-child::before { top: 7px; }
.problem-list--plus li::before { background: var(--ink); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.feature-list li { padding: 12px 0 12px 22px; border-bottom: var(--rule); position: relative; line-height: 1.4; }
.feature-list li::before { content: '—'; position: absolute; left: 0; color: var(--red-ui); font-family: var(--mono); }

.approach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.approach-grid li { padding: 22px 28px 26px 0; border-bottom: var(--rule); display: grid; gap: 8px; align-content: start; }
.approach-grid li:nth-child(even) { padding-left: 28px; border-left: var(--rule); }
.approach-title { font: 600 1.375rem/1.1 var(--display); text-transform: uppercase; }

.chips { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 8px; }
.chips li { padding: 7px 10px; border: 1.5px solid var(--ink); font: 500 0.8125rem/1.2 var(--mono); }

.service-rows { border-top: var(--rule); }
.service-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 22px 0; border-bottom: var(--rule); }
.service-glyph { width: 64px; height: 64px; color: var(--ink); }
.service-name { font: 600 clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem)/1.05 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.service-name a { text-decoration: none; }
.service-row p { max-width: 46rem; }
@media (hover: hover) and (pointer: fine) { .service-name a:hover { color: var(--red-ui); } }

.solution-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule-strong); }
.si { border-left: var(--rule); border-bottom: var(--rule); min-width: 0; }
.si:nth-child(3n + 1) { border-left: 0; }
.si-link { display: grid; gap: 10px; padding: 22px; text-decoration: none; height: 100%; align-content: start; }
.si:nth-child(3n + 1) .si-link { padding-left: 0; }
.si-art .hero-art { width: 100%; max-width: 320px; }
.si-name { font: 600 clamp(1.5rem, 1.1rem + 1vw, 2.125rem)/1 var(--display); text-transform: uppercase; }
.si-text { line-height: 1.45; }
.si-meta { font: 500 0.75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--red-ui); }
@media (hover: hover) and (pointer: fine) {
  .si-link { transition: background-color var(--t-fade) ease; }
  .si-link:hover { background: var(--paper-deep); }
}

.sibling-nav, .pager { position: relative; }
.sibling-nav::before, .pager::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 3px; background: var(--ink); }
.sibling-nav { margin-top: clamp(28px, 3.4vw, 52px); }
.sibling-nav .strip-title { padding-top: 16px; }
.sibling-nav ul { display: flex; flex-wrap: wrap; gap: 0 32px; }
.sibling-nav a { display: inline-block; padding: 10px 0; font: 600 1.25rem/1.1 var(--display); text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--red); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule-strong); }
.product-grid--dev { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcard { display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-areas: "art name" "art claim" "art status" "actions actions"; gap: 6px 20px; align-content: start; padding: 26px 24px 22px; border-left: var(--rule); border-bottom: var(--rule); min-width: 0; }
.product-grid .pcard:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.product-grid--dev .pcard:nth-child(n) { border-left: var(--rule); padding-left: 24px; }
.product-grid--dev .pcard:nth-child(odd) { border-left: 0; padding-left: 0; }
.pcard-art { grid-area: art; width: 120px; height: 120px; color: var(--ink); }
.pcard-name { grid-area: name; font: 600 clamp(1.5rem, 1.2rem + 0.8vw, 2rem)/1 var(--display); text-transform: uppercase; }
.pcard-name a { text-decoration: none; }
.pcard-claim { grid-area: claim; font-size: 0.975rem; line-height: 1.45; }
.pcard-status { grid-area: status; margin-top: 4px; }
.pcard-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 8px; }

.integration-list { display: grid; }
.integration-list li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 12px 0; border-bottom: var(--rule); }
.integration-list li:first-child { padding-top: 0; }
.integration-list .tag { justify-self: start; }
.integration-list a { display: inline-block; padding: 2px 0; }
.state { margin-bottom: 8px; }
.fit { display: grid; gap: 12px; }
.fit a { display: inline-block; padding: 4px 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: grid; gap: 4px; padding: 16px 0; font: 600 1.375rem/1.1 var(--display); text-transform: uppercase; text-decoration: none; }
.pager a + a { text-align: right; justify-items: end; }

.distinction { display: grid; }
.distinction div { padding: 0 0 16px; border-bottom: var(--rule); }
.distinction div + div { padding-top: 16px; }
.distinction dt { font: 600 1.375rem/1.1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.distinction a { display: inline-block; padding: 2px 0; }

.toc ul { display: flex; flex-wrap: wrap; gap: 0 24px; border-top: var(--rule); border-bottom: var(--rule); }
.toc a { display: inline-block; padding: 12px 0; font: 500 0.8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.tech-task { font-size: 1.125rem; line-height: 1.5; max-width: 40em; margin-bottom: 16px; }
.tech-list { display: grid; border-top: var(--rule); }
.tech-list div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: var(--rule); }
.tech-list dt { font: 600 1.25rem/1.2 var(--display); text-transform: uppercase; }
.tech-used { display: block; margin-top: 4px; font: 400 0.8125rem/1.5 var(--mono); color: var(--pencil); }
.tech-used a { display: inline-block; padding: 3px 0; color: var(--ink); }

.roles { display: grid; }
.roles div { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: var(--rule); }
.roles div:first-child { padding-top: 0; }
.roles dt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font: 600 1.25rem/1.1 var(--display); text-transform: uppercase; }
.roles dt a { display: inline-block; padding: 2px 0; text-decoration: none; }
.sub-title { font: 600 1.375rem/1.1 var(--display); text-transform: uppercase; margin: 8px 0 12px; }
.table-wrap { overflow-x: auto; margin-bottom: 28px; }
.eco-table { width: 100%; border-collapse: collapse; font-size: 0.975rem; }
.eco-table th { text-align: left; font: 500 0.6875rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--pencil); padding: 10px 16px 10px 0; border-bottom: var(--rule-strong); }
.eco-table td { padding: 12px 16px 12px 0; border-bottom: var(--rule); vertical-align: top; }
.eco-table td:first-child { white-space: nowrap; }
.eco-table a { display: inline-block; padding: 2px 0; }

/* Ökosystem-Grafik */
.eco-figure { border-top: var(--rule); padding-top: 12px; }
.eco-svg { width: 100%; height: auto; max-height: 76vh; }
.eco-edge { stroke-width: 3; }
.eco-edge--existing { stroke: var(--ink); stroke-width: 4; }
.eco-edge--planned { stroke: var(--red); stroke-dasharray: 14 9; }
.eco-edge--idea { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3 7; }
.eco-core { fill: var(--paper); stroke: var(--ink); stroke-width: 3; stroke-dasharray: 8 5; }
.eco-core-dot { fill: var(--red); }
.eco-port { fill: var(--red); stroke: var(--ink); stroke-width: 2; }
.eco-port--planned { fill: var(--paper); stroke: var(--red); stroke-dasharray: 3 2; }
.eco-label { font: 600 24px var(--display); text-transform: uppercase; fill: var(--ink); }
.eco-label--inv { fill: var(--paper); }
.eco-small { font: 500 17px var(--mono); fill: var(--ink); }
.eco-ext rect { fill: var(--ink); }
.eco-link:focus-visible { outline: none; }
.eco-link:focus-visible rect, .eco-link:focus-visible .eco-core { stroke: var(--red-ui); stroke-width: 6; stroke-dasharray: none; }
.eco-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-bottom: 16px; font: 400 0.8125rem/1.4 var(--mono); }
.eco-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; flex: none; }
.lg--node { width: 22px; height: 14px; background: var(--ink); }
.lg--dev { width: 22px; height: 14px; border: 2px dashed var(--ink); }
.lg--port { width: 11px; height: 11px; background: var(--red); border: 1.5px solid var(--ink); }
.lg--port-planned { width: 11px; height: 11px; border: 1.5px dashed var(--red-ui); }
.lg--existing { width: 30px; height: 0; border-top: 4px solid var(--ink); }
.lg--planned { width: 30px; height: 0; border-top: 3px dashed var(--red); }
.lg--idea { width: 30px; height: 0; border-top: 2px dotted var(--ink); }

/* ---------- Über mich ---------- */
.about {
  padding-top: clamp(32px, 5vw, 80px); padding-bottom: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start;
}
.about-mark svg { width: 100%; max-width: 380px; height: auto; color: var(--ink); }
.about-copy { display: grid; gap: 20px; max-width: 44rem; }
.about-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: var(--rule-strong); margin-top: 8px; }
.about-facts div { padding: 14px 16px 14px 0; border-bottom: var(--rule); }
.about-facts div:nth-child(even) { border-left: var(--rule); padding-left: 16px; }
.about-facts dt { font: 500 0.6875rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--pencil); }
.about-facts dd { font-size: 1rem; margin-top: 4px; }
.motto { margin-top: 32px; font: 600 clamp(1.75rem, 1rem + 2.6vw, 3.5rem)/1.05 var(--display); text-transform: uppercase; color: var(--red); max-width: 22ch; }

/* ---------- Rechtstexte ---------- */
.legal { display: grid; gap: 28px; }
.legal > section, .legal > .review-note { max-width: 48rem; }
.legal h2 { overflow-wrap: break-word; hyphens: auto; font: 600 1.5rem/1.1 var(--display); text-transform: uppercase; margin-bottom: 8px; padding-top: 14px; border-top: var(--rule-strong); }
.legal p + p { margin-top: 0.8em; }
.legal a { display: inline-block; padding: 2px 0; }

/* ---------- Redaktionelle Hinweise (nur Vorschau) ---------- */
.review-note {
  margin: 12px 0; padding: 10px 14px;
  border: 2px dashed var(--red-ui); background: var(--paper);
  font: 400 0.8125rem/1.5 var(--mono); color: var(--ink);
}
.review-note strong { color: var(--red-ui); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
main > .review-note { max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }

/* ---------- Fuß ---------- */
.colophon { padding-top: 36px; padding-bottom: 40px; }
.footer-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; border-top: var(--rule-strong); padding-top: 22px; }
.footer-title { font: 500 0.75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--pencil); margin-bottom: 8px; }
.footer-nav a, .footer-nav .link-button { display: inline-block; padding: 5px 0; font-size: 0.9375rem; text-decoration: none; text-align: left; }
.footer-nav a:hover, .footer-nav .link-button:hover { color: var(--red-ui); text-decoration: underline; }
.colophon-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 16px; border-top: var(--rule); font: 400 0.75rem/1.5 var(--mono); color: var(--pencil); }

/* ---------- Einwilligung ---------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--ink); color: var(--paper);
  border-top: 6px solid var(--red);
  max-height: 85vh; overflow-y: auto;
}
.consent[hidden] { display: none; }
.consent-inner { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 40px; align-items: center; }
.consent-title { grid-column: 1 / -1; font: 600 1.375rem/1 var(--display); text-transform: uppercase; }
.consent-title:focus { outline: none; }
.consent-title:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; }
.consent-text { font-size: 0.975rem; max-width: 52rem; }
.consent-text a { color: var(--paper); display: inline-block; padding: 2px 0; }
.consent-options { grid-column: 1 / -1; border: 1px solid var(--paper); margin: 0; padding: 12px 16px; display: grid; gap: 10px; }
.consent-options[hidden] { display: none; }
.consent-option { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; cursor: pointer; }
.consent-option input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cbtn {
  min-height: 48px; padding: 0 18px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 2px solid var(--paper);
  font: 500 0.875rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em;
}
.cbtn[hidden] { display: none; }
.cbtn--plain { background: transparent; color: var(--paper); }
.consent :focus-visible { outline-color: var(--red-light); }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  html.js .mainnav { display: none; }
  html.js.nav-open .mainnav { display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--paper); border-bottom: var(--rule-strong); padding: 8px var(--gutter) 20px; }
  html.js.nav-open .mainnav ul { flex-direction: column; gap: 0; }
  html.js.nav-open .mainnav li { border-bottom: var(--rule); }
  html.js.nav-open .mainnav a { display: block; padding: 14px 0; font-size: 1rem; }
  html:not(.js) .masthead { flex-wrap: wrap; }
  html:not(.js) .mainnav ul { justify-content: flex-start; }
}
@media (max-width: 1100px) {
  .solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solution:nth-child(odd) { border-left: 0; padding-left: 0; }
  .solution:nth-child(n + 3) { border-top: var(--rule); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .tile:nth-child(n) { border-left: var(--rule); }
  .tiles .tile:nth-child(n) .tile-link { padding-left: 18px; }
  .tiles .tile:nth-child(odd) { border-left: 0; }
  .tiles .tile:nth-child(odd) .tile-link { padding-left: 0; }
  .product-grid, .solution-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid .pcard:nth-child(n) { border-left: var(--rule); padding-left: 24px; }
  .solution-index .si:nth-child(n) { border-left: var(--rule); }
  .solution-index .si:nth-child(n) .si-link { padding-left: 22px; }
  .product-grid .pcard:nth-child(odd) { border-left: 0; padding-left: 0; }
  .solution-index .si:nth-child(odd) { border-left: 0; }
  .solution-index .si:nth-child(odd) .si-link { padding-left: 0; }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-links { grid-template-columns: minmax(0, 1fr); }
  .service-links li { border-left: 0; border-bottom: var(--rule); }
  .service-links a { padding-left: 0; }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    grid-template-areas: "title title" "panel figure" "filters filters";
  }
  .hero-title { font-size: clamp(2.5rem, 8.4vw, 4.5rem); }
  .hero-figure { align-self: center; width: 100%; margin-top: 24px; }
  .area-list { grid-template-columns: minmax(0, 1fr); }
  .area, .area:first-child { border-left: 0; padding: 24px 0; }
  .area + .area { border-top: var(--rule); }
  .teaser-pair { grid-template-columns: minmax(0, 1fr); }
  .teaser + .teaser { padding-left: 0; border-left: 0; margin-top: 24px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > .section-head { border-top: var(--rule-strong); padding-top: 16px; }
  .split > :not(.section-head) { border-top: 0; padding-top: 4px; }
  .page-head--art { grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-mark svg { max-width: 220px; }
  .feature-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Smartphone ---------- */
@media (max-width: 640px) {
  .masthead { padding-top: 14px; padding-bottom: 12px; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "figure" "filters" "panel"; padding-bottom: 8px; }
  .hero-title { font-size: clamp(2.25rem, 11.5vw, 3.5rem); line-height: 1.1; }
  .hero-figure { width: min(100%, 380px); justify-self: center; margin: 20px 0 8px; }
  .theme-panel { margin-top: 20px; }
  .filters { margin-top: 14px; grid-template-columns: minmax(0, 1fr); border-top: var(--rule-strong); }
  .filter { gap: 16px; min-height: 52px; padding: 10px 12px; border-top: 0; border-left: 0; }
  .filter[aria-selected='true'] { border-top-color: transparent; }
  .filter[aria-selected='true']::before { display: none; }
  .filter[aria-selected='true']::after { content: '↓'; margin-left: auto; font-family: var(--mono); }
  .filter-name { font-size: 1.25rem; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-aside { text-align: left; }
  .solutions { grid-template-columns: minmax(0, 1fr); }
  .solution, .solution:nth-child(n) {
    display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; row-gap: 8px;
    padding: 22px 0; border-left: 0;
  }
  .solution + .solution { border-top: var(--rule); }
  .solution-art { grid-row: 1 / span 2; width: 88px; margin: 0; }
  .solution > :not(.solution-art) { grid-column: 2; }
  .solution > .solution-text, .solution > .solution-status, .solution > .solution-link { grid-column: 1 / -1; }
  .tiles, .tiles--compact, .product-grid, .product-grid--dev, .solution-index { grid-template-columns: minmax(0, 1fr); }
  .tiles .tile:nth-child(n), .tiles--compact .tile:nth-child(n) { border-left: 0; }
  .tiles .tile:nth-child(n) .tile-link, .tiles--compact .tile:nth-child(n) .tile-link { padding-left: 0; padding-right: 0; }
  .product-grid .pcard:nth-child(n), .product-grid--dev .pcard:nth-child(n) { border-left: 0; padding-left: 0; padding-right: 0; }
  .solution-index .si:nth-child(n) { border-left: 0; }
  .solution-index .si:nth-child(n) .si-link { padding-left: 0; padding-right: 0; }
  .si-art .hero-art { max-width: 200px; }
  .pcard { grid-template-columns: 80px minmax(0, 1fr); }
  .pcard-art { width: 80px; height: 80px; }
  .page-head--art { grid-template-columns: minmax(0, 1fr); }
  .page-head-art { justify-self: start; width: min(100%, 240px); order: -1; }
  .head-glyph { width: 88px; margin-left: 0; }
  .approach-grid { grid-template-columns: minmax(0, 1fr); }
  .approach-grid li:nth-child(even) { padding-left: 0; border-left: 0; }
  .service-row { grid-template-columns: 48px minmax(0, 1fr); }
  .service-row .solution-link { display: none; }
  .service-glyph { width: 48px; height: 48px; }
  .integration-list li, .tech-list div, .roles div { grid-template-columns: minmax(0, 1fr); }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager a + a { text-align: left; justify-items: start; border-top: var(--rule); }
  .about-facts, .contact-facts { grid-template-columns: minmax(0, 1fr); }
  .about-facts div:nth-child(even) { border-left: 0; padding-left: 0; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consent-inner { grid-template-columns: minmax(0, 1fr); }
  .cbtn { flex: 1 1 100%; }
  .eco-table td:first-child { white-space: normal; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation-duration: 0.01ms !important; }
}

/* ---------- Druck ---------- */
@media print {
  body { background: #fff; }
  .mainnav, .nav-toggle, .filters, .skip-link, .btn, .consent, .review-note { display: none !important; }
  .contact { background: none; color: var(--ink); }
  .contact .section-title, .contact-more a { color: var(--ink); }
}

/* =====================================================================
   V3-Erweiterungen
   ===================================================================== */

/* ---------- Navigation: zusätzliche Einträge nur im mobilen Menü ---------- */
.mainnav .nav-more { display: none; }
@media (max-width: 1023px) {
  html.js.nav-open .mainnav .nav-more { display: flex; flex-direction: column; margin-top: 12px; padding-top: 8px; border-top: var(--rule-strong); }
  html.js.nav-open .mainnav .nav-more a { font-size: 0.875rem; color: var(--pencil); }
  html:not(.js) .nav-more { display: flex; gap: 4px 20px; flex-wrap: wrap; }
}

/* ---------- Themenfilter: neun Aufgaben ---------- */
.filters { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.filter { min-height: 68px; padding: 14px 12px; }
.filter-name { font-size: clamp(0.9375rem, 0.7rem + 0.42vw, 1.1875rem); line-height: 1.1; }
.filter[aria-selected='true']::before { left: 12px; }
@media (max-width: 1279px) {
  .filters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .filter:nth-child(6) { border-left: 0; }
}
@media (max-width: 640px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule-strong); }
  .filter, .filter:nth-child(n) { min-height: 56px; padding: 8px 8px; border-top: 0; border-left: var(--rule); justify-content: center; text-align: center; }
  .filter:nth-child(3n + 1) { border-left: 0; }
  .filter-name { font-size: 0.9375rem; }
  .filter[aria-selected='true']::after { content: none; }
}

/* ---------- Themenpanel: Produktliste ---------- */
.lead { display: block; padding: 12px 0; }
.lead-list { display: grid; gap: 8px; margin-top: 8px; }
.lead-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.lead-list .lead-icon { width: 44px; height: 44px; }
.lead-list .lead-name { font: 600 1.25rem/1.1 var(--display); text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--red); justify-self: start; padding: 2px 0; }
.tag--service { border: 1.5px solid var(--ink); }
.solution-art--glyph { max-width: 120px; padding: 20px; }

/* ---------- KI trifft Geschäftsprozesse ---------- */
.ai-block {
  max-width: var(--max); margin: clamp(24px, 3vw, 48px) auto; padding: clamp(36px, 5vw, 72px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px);
  position: relative;
}
.ai-block::before { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 14px; background: var(--red); }
.ai-head { display: grid; gap: 18px; align-content: start; }
.ai-title { font: 600 clamp(2.25rem, 1rem + 4.2vw, 4.75rem)/1.02 var(--display); text-transform: uppercase; hyphens: manual; }
.ai-text { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); line-height: 1.5; }
.ai-competences { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-competences a { display: inline-block; padding: 8px 12px; border: 1.5px solid var(--ink); font: 500 0.8125rem/1.2 var(--mono); text-decoration: none; }
.ai-competences a:hover { background: var(--ink); color: var(--paper); }
.ai-examples { display: grid; border-top: var(--rule-strong); }
.ai-example { padding: 18px 0; border-bottom: var(--rule); }
.ai-example-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.ai-ill { width: 52px; height: 52px; color: var(--ink); }
.ai-name { font: 600 1.5rem/1 var(--display); text-transform: uppercase; }
.ai-name a { text-decoration: none; display: inline-block; padding: 2px 0; }
.ai-list { display: grid; gap: 8px; }
.ai-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 0.975rem; line-height: 1.45; }
.ai-list .tag { justify-self: start; }
.ai-outlook { grid-column: 1 / -1; color: var(--pencil); max-width: 60rem; }
.ai-outlook a { display: inline-block; padding: 2px 0; color: var(--ink); }

/* ---------- Branchen- und Referenzteaser ---------- */
.industry-teaser, .webmaster-teaser { max-width: var(--max); margin-inline: auto; padding: clamp(32px, 4vw, 64px) var(--gutter); }
.industry-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule-strong); }
.industry-links li { border-bottom: var(--rule); border-left: var(--rule); }
.industry-links li:nth-child(3n + 1) { border-left: 0; }
.industry-links a { display: grid; gap: 6px; padding: 18px 20px 20px; text-decoration: none; height: 100%; }
.industry-links li:nth-child(3n + 1) a { padding-left: 0; }
.il-name { font: 600 1.375rem/1.1 var(--display); text-transform: uppercase; }
.il-text { font-size: 0.9375rem; line-height: 1.45; color: var(--pencil); }
.industry-links a:hover .il-name { color: var(--red-ui); }

/* ---------- Branchenübersicht und Angebote ---------- */
.industry-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule-strong); }
.ii { border-left: var(--rule); border-bottom: var(--rule); min-width: 0; }
.ii:nth-child(3n + 1) { border-left: 0; }
.ii-link { display: grid; gap: 10px; padding: 24px 22px 26px; text-decoration: none; height: 100%; align-content: start; }
.ii:nth-child(3n + 1) .ii-link { padding-left: 0; }
.ii-name { font: 600 clamp(1.5rem, 1.1rem + 1vw, 2.125rem)/1.02 var(--display); text-transform: uppercase; hyphens: manual; }
.ii-text { line-height: 1.45; }
.ii-link:hover .ii-name { color: var(--red-ui); }
.offer-list { border-top: var(--rule); }
.offer-list a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto; gap: 8px 24px; align-items: baseline; padding: 16px 0; border-bottom: var(--rule); text-decoration: none; }
.ol-name { font: 600 1.375rem/1.1 var(--display); text-transform: uppercase; }
.ol-text { color: var(--pencil); }
.offer-list a > span[aria-hidden] { color: var(--red-ui); font-family: var(--mono); }
.offer-list a:hover .ol-name { color: var(--red-ui); }

/* ---------- Referenzen ---------- */
.rf-btn { min-height: 40px; padding: 0 14px; background: transparent; border: 1.5px solid var(--ink); cursor: pointer; font: 500 0.8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.rf-btn[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.rf-btn:hover { border-color: var(--red-ui); }
.solution-link--ext { margin-top: auto; }

/* ---------- Logos ---------- */
.tile-logo, .pcard-logo { display: block; height: 26px; width: auto; max-width: 100%; }
.tile-name:has(.tile-logo) { padding: 4px 0 2px; }
.logo-name { font: 600 1.375rem/1 var(--display); text-transform: uppercase; }
.product-id { display: grid; gap: 12px; justify-items: start; }
.logo-plate { display: inline-flex; padding: 0; }
.logo-plate--white { background: #fff; padding: 8px 12px; border: var(--rule); }
.logo-plate--dark { background: var(--ink); padding: 10px 14px; }
.product-logo { height: 40px; width: auto; max-width: 100%; }
.pcard-role { font: 500 0.75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--red-ui); }
.pcard { grid-template-areas: "art name" "art role" "art claim" "art status" "actions actions"; }
.pcard-role { grid-area: role; }
.pcard-name a { display: inline-block; padding: 2px 0; }
.standalone { display: grid; gap: 14px; justify-items: start; }
.standalone-logo { height: 24px; width: auto; }

/* ---------- Kontaktblock mit Porträt ---------- */
.contact { grid-template-columns: minmax(0, 1fr); align-items: end; overflow: hidden; }
.contact::before { top: auto; bottom: 0; left: 0; right: auto; width: clamp(80px, 14vw, 200px); height: 14px; }
.contact::after { content: ''; position: absolute; left: 0; bottom: 0; width: 14px; height: clamp(60px, 9vw, 140px); background: var(--red); }
.contact--portrait { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); column-gap: clamp(24px, 4vw, 56px); padding-bottom: 0; }
.contact-copy { display: grid; gap: 16px; align-content: start; padding-bottom: clamp(36px, 5vw, 72px); min-width: 0; }
.contact:not(.contact--portrait) .contact-copy { padding-bottom: 0; }
.contact-title { font: 600 clamp(2rem, 1rem + 3.4vw, 4.25rem)/1.1 var(--display); text-transform: uppercase; color: var(--paper); max-width: 16ch; }
.contact-card { border-top: 1px solid var(--paper); padding-top: 14px; display: grid; gap: 2px; }
.contact-name { font: 600 1.375rem/1.1 var(--display); text-transform: uppercase; }
.contact-role { font: 400 0.8125rem/1.5 var(--mono); color: #d9cfb9; }
.contact-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.contact-links a { display: inline-block; padding: 8px 0; font: 500 0.8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--paper); }
.contact-links a:hover { color: var(--red-light); }
.contact-portrait { align-self: end; justify-self: end; width: 100%; max-width: 360px; }
.contact-portrait img { width: 100%; height: auto; display: block; }
.contact-mail a { font-size: clamp(1.375rem, 0.6rem + 3.6vw, 3.75rem); }

/* ---------- Über mich: Porträt ---------- */
.about-portrait { margin: 0; position: relative; max-width: 420px; }
.about-portrait img { width: 100%; height: auto; display: block; position: relative; }
.about-portrait::before { content: ''; position: absolute; left: -16px; bottom: 0; width: 60%; height: 14px; background: var(--red); }
.about-portrait::after { content: ''; position: absolute; left: -16px; right: 0; bottom: 0; height: 3px; background: var(--ink); }

/* ---------- Technologien ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: var(--rule); }
.tech { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "mono name" "mono use" "mono used"; gap: 2px 14px; padding: 14px 16px 16px 0; border-bottom: var(--rule); align-content: start; }
.tech-mono { grid-area: mono; display: grid; place-items: center; width: 56px; height: 56px; background: var(--ink); color: var(--paper); font: 600 1rem/1 var(--display); letter-spacing: 0.02em; }
.tech:nth-child(3n + 2) .tech-mono { background: var(--red-ui); }
.tech-name { grid-area: name; font: 600 1.25rem/1.15 var(--display); text-transform: uppercase; }
.tech-use { grid-area: use; font-size: 0.9375rem; line-height: 1.4; }
.tech-used { grid-area: used; }

/* ---------- Ökosystem ---------- */
.eco-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.eco-views { display: flex; flex-wrap: wrap; gap: 0; border: 1.5px solid var(--ink); }
.eco-view, .eco-anim { min-height: 44px; padding: 0 16px; background: transparent; border: 0; cursor: pointer; font: 500 0.8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.eco-view + .eco-view { border-left: 1.5px solid var(--ink); }
.eco-view[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.eco-anim { border: 1.5px solid var(--ink); }
.eco-anim[aria-pressed='false'] { color: var(--pencil); }
.eco-legend { border-bottom: var(--rule); margin-bottom: 8px; }
.eco-view-note { padding: 10px 14px; border-left: 6px solid var(--red); background: var(--paper-deep); margin-bottom: 12px; max-width: 60rem; }
.eco-view-note[hidden] { display: none; }
.eco-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 24px; align-items: start; }
.eco-figure { border-top: 0; padding-top: 0; margin: 0; }
.eco-svg { width: 100%; height: auto; max-height: none; display: block; }
.eco-svg--mobile { display: none; }
.eco-zone { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 6; opacity: 0.5; }
.eco-zone-label { font: 500 13px var(--mono); letter-spacing: 0.12em; fill: var(--pencil); }
.eco-edge line { stroke-width: 3; transition: opacity var(--t-fade) ease, stroke-width var(--t-fade) ease; }
.eco-edge--existing line { stroke: var(--ink); stroke-width: 5; }
.eco-edge--planned line { stroke: var(--red); stroke-dasharray: 14 9; }
.eco-edge--idea line { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.eco-edge .eco-pulse { stroke: var(--red); stroke-width: 5; stroke-dasharray: 10 90; stroke-dashoffset: 0; opacity: 0; }
.eco-stage[data-anim='on'] .eco-edge--existing .eco-pulse { opacity: 1; animation: eco-pulse 2.8s linear infinite; }
@keyframes eco-pulse { to { stroke-dashoffset: -100; } }
.eco-card { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.eco-node--dev .eco-card { stroke-dasharray: 9 6; }
.eco-node--core .eco-card { stroke-width: 4; }
.eco-core-bar { fill: var(--red); }
.eco-ill { color: var(--ink); }
.eco-name { font: 600 25px var(--display); text-transform: uppercase; fill: var(--ink); }
.eco-status { font: 500 12px var(--mono); letter-spacing: 0.06em; fill: var(--ink); }
.eco-node--dev .eco-status { fill: var(--pencil); }
.eco-role { font: 400 13px var(--mono); fill: var(--pencil); }
.eco-ext rect { fill: var(--ink); }
.eco-ext-label { font: 500 14px var(--mono); fill: var(--ink); }
.eco-node { cursor: pointer; }
.eco-node:focus { outline: none; }
.eco-node:focus-visible .eco-card, .eco-node.is-active .eco-card { stroke: var(--red-ui); stroke-width: 5; stroke-dasharray: none; }
/* Ansichten */
.eco-stage[data-view='existing'] .eco-edge--planned, .eco-stage[data-view='existing'] .eco-edge--idea { opacity: 0.06; }
.eco-stage[data-view='target'] .eco-edge--existing { opacity: 0.15; }
.eco-stage[data-view='target'] .eco-edge--idea line { stroke-width: 3; opacity: 1; }
.eco-stage[data-view='target'] .eco-ext { opacity: 0.25; }
/* Fokus: nicht relevante Verbindungen zurücknehmen */
.eco-stage[data-focus]:not([data-focus='']) .eco-edge:not(.is-related) { opacity: 0.08; }
.eco-stage[data-focus]:not([data-focus='']) .eco-edge.is-related line { stroke-width: 5; }
.eco-stage[data-focus]:not([data-focus='']) .eco-node:not(.is-active) { opacity: 0.55; }
.eco-info { border-top: var(--rule-strong); padding-top: 14px; font-size: 0.9375rem; line-height: 1.45; position: sticky; top: 16px; }
.eco-info-body { display: grid; gap: 10px; }
.eco-info-name { font: 600 1.375rem/1.1 var(--display); text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.eco-info-list { display: grid; gap: 8px; }
.eco-info-list .tag { margin-right: 4px; }
.lg--node { background: var(--paper); border: 3px solid var(--ink); }
.lg--dev { border: 2px dashed var(--ink); }
.lg--existing { border-top-width: 5px; }
.lg--idea { border-top: 3px dotted var(--ink); }
.tag--existing, .tag--planned, .tag--idea { white-space: nowrap; }
@media (max-width: 1100px) {
  .eco-stage { grid-template-columns: minmax(0, 1fr); }
  .eco-info { position: static; }
}
@media (max-width: 700px) {
  .eco-svg--desktop { display: none; }
  .eco-svg--mobile { display: block; }
  .eco-view, .eco-anim { padding: 0 10px; font-size: 0.75rem; }
}

/* ---------- Galerie und Lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: var(--rule-strong); padding-top: 20px; }
.shot figure { margin: 0; display: grid; gap: 8px; }
.shot-link { display: block; border: var(--rule); background: #fff; }
.shot-link img { width: 100%; height: auto; display: block; }
.shot figcaption { font: 400 0.8125rem/1.4 var(--mono); color: var(--pencil); }
.shot-link:hover { outline: 3px solid var(--red); outline-offset: 0; }
.lightbox { padding: 0; border: 0; background: var(--ink); color: var(--paper); width: min(96vw, 1600px); max-height: 94vh; }
.lightbox::backdrop { background: rgb(22 19 15 / 0.85); }
.lightbox-figure { margin: 0; display: grid; gap: 8px; padding: 12px 12px 0; }
.lightbox-img { width: 100%; height: auto; max-height: calc(94vh - 120px); object-fit: contain; background: #fff; }
.lightbox-caption { font: 400 0.8125rem/1.4 var(--mono); }
.lightbox-controls { display: flex; gap: 8px; justify-content: flex-end; padding: 12px; }
.lb-btn { min-height: 44px; padding: 0 16px; background: var(--paper); color: var(--ink); border: 0; cursor: pointer; font: 500 0.8125rem/1 var(--mono); text-transform: uppercase; }
.lb-btn--close { background: var(--red-ui); color: var(--paper); }
.lightbox :focus-visible { outline-color: var(--red-light); }
@media (max-width: 1100px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Rechtstexte ---------- */
.legal-stand { font: 400 0.8125rem/1.4 var(--mono); color: var(--pencil); }

/* ---------- Mobil-Anpassungen V3 ---------- */
@media (max-width: 900px) {
  .ai-block { grid-template-columns: minmax(0, 1fr); }
  .industry-links, .industry-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-links li:nth-child(n), .ii:nth-child(n) { border-left: var(--rule); }
  .industry-links li:nth-child(n) a, .ii:nth-child(n) .ii-link { padding-left: 20px; }
  .industry-links li:nth-child(odd), .ii:nth-child(odd) { border-left: 0; }
  .industry-links li:nth-child(odd) a, .ii:nth-child(odd) .ii-link { padding-left: 0; }
  .contact--portrait { grid-template-columns: minmax(0, 1fr) minmax(0, 240px); }
  .offer-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .ol-text { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  .industry-links, .industry-index { grid-template-columns: minmax(0, 1fr); }
  .industry-links li:nth-child(n), .ii:nth-child(n) { border-left: 0; }
  .industry-links li:nth-child(n) a, .ii:nth-child(n) .ii-link { padding-left: 0; padding-right: 0; }
  .ai-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .contact--portrait { grid-template-columns: minmax(0, 1fr); }
  .contact-portrait { justify-self: center; max-width: 260px; }
  .contact-copy { padding-bottom: 8px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .lead-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .lead-list li > .status, .lead-list li > .tag { grid-column: 2; justify-self: start; }
  .about-portrait { max-width: 280px; }
}

/* Lange Komposita in schmalen Spalten trennen */
.footer-nav a, .footer-nav .link-button, .page-title, .section-title, .ii-name, .si-name, .area-name { hyphens: auto; overflow-wrap: break-word; }
.footer-nav a, .footer-nav .link-button { overflow-wrap: anywhere; }
.sl-name, .solution-title, .solution-meta, .theme-name, .si-name, .ii-name, .il-name, .ol-name, .lead-name, .tile-name, .pcard-name, .approach-title, .tech-name, .ai-name, .eco-info-name, .contact-title, .contact-mail a, .page-title, .section-title, .ai-title, .area-name, .teaser-title { overflow-wrap: anywhere; }

/* =====================================================================
   RC2: Living System – automatischer Wechsel, Webmaster-Service, Funktionsanimationen
   ===================================================================== */

/* ---------- Themenpanels: alle neun gestapelt, Höhe = längstes Panel (keine Layoutsprünge) ---------- */
/* Die Höhe richtet sich nach dem längsten Panel – Abstände leicht verdichtet, damit die Filter
   bei 1440 × 900 weiterhin im ersten Bildschirm liegen. */
.theme-panel { gap: 0; margin-top: clamp(18px, 1.6vw, 28px); }
.filters { margin-top: 18px; }
.theme-slide {
  grid-area: 1 / 1; min-width: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start;
  opacity: 0; visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}
.theme-slide.is-active { opacity: 1; visibility: visible; transition: opacity 360ms var(--ease) 140ms, visibility 0s; }
.theme-slide .btn { justify-self: start; }

/* ---------- Steuerung des automatischen Wechsels ---------- */
.hero-figure { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; }
.hero-figure > .hero-art { grid-column: 1 / -1; }
.hero-figure > .hero-caption { grid-column: 1; grid-row: 2; }
.hero-figure > .hero-controls { grid-column: 2; grid-row: 2; }
/* Horizontales Wischen über die Illustration wechselt das Thema; senkrechtes Scrollen bleibt beim Browser. */
.hero-figure { touch-action: pan-y; }
.hero-play {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; margin-top: 6px; padding: 4px 10px;
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  font: 500 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer;
}
.hero-play[hidden] { display: none; }
.hero-play:focus-visible { outline: 3px solid var(--red-ui); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .hero-play:hover { background: var(--ink); color: var(--paper); } }
.hero-play-icon { display: block; width: 10px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero[data-autoplay='off'] .hero-play-icon { width: 0; height: 0; border-right: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* Dezente Fortschrittsanzeige am aktiven Filter (Taktgeber: home.js, Web Animations) */
.filter-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: #6f1c0d; transform: scaleX(0); transform-origin: left center; pointer-events: none;
}
.filter:not([aria-selected='true']) .filter-progress, .hero[data-autoplay='off'] .filter-progress { visibility: hidden; }

/* ---------- Webmaster-Service (Startseite, Leistungsseite) ---------- */
.wm-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px); border-top: var(--rule-strong); padding-top: 18px; }
.wm-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-content: start; }
.wm-list li { padding: 9px 0; border-bottom: var(--rule); font: 500 1.0625rem/1.25 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.wm-list li::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--red); vertical-align: 0.05em; }
.scope-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (max-width: 900px) { .wm-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .wm-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Animierte Produktillustration (Produktseiten) ---------- */
.fx-figure .head-ill { display: block; }
.fx-figure .hero-caption { margin-top: 8px; }

/* =====================================================================
   Funktionale Animationen der Illustrationen (motion-art.mjs)
   Ruhezustand = statisches Bild. Bewegung nur mit [data-live] (gesetzt per JavaScript, nie bei
   prefers-reduced-motion, nicht bei verborgener Seite oder außerhalb des sichtbaren Bereichs).
   Animiert werden nur transform und opacity.
   ===================================================================== */
.fx-host { --fx-T: 8s; --fx-N: infinite; }
.fx-host[data-fx='once'] { --fx-T: 4.8s; --fx-N: 1; }
.fx-host [class^='fx-'], .fx-host [class*=' fx-'] { transform-box: view-box; }
.fx-layer > * { opacity: 0; }
.fx-label { font: 500 15px/1 var(--mono); letter-spacing: 2px; fill: var(--ink); }
.hero-art .rs, .head-ill .rs { stroke: var(--red); fill: none; }
.head-ill .k { fill: currentColor; }
.head-ill .r { fill: var(--red); }
.head-ill .p { fill: var(--paper); }
.head-ill .ks { stroke: currentColor; }
.fx-host[data-live] .fx-layer > *, .fx-host[data-live] g[class^='fx-'] {
  animation-duration: var(--fx-T); animation-iteration-count: var(--fx-N);
  animation-timing-function: ease-in-out; animation-fill-mode: both;
}

/* Keyframes und Zuordnungen: fx.css (wird nach dem ersten Bild geladen). */

/* Reduzierte Bewegung: keinerlei kontinuierliche Animation, keine Fortschrittsanzeige */
@media (prefers-reduced-motion: reduce) {
  .fx-host *, .filter-progress { animation: none !important; }
  .filter-progress { visibility: hidden; }
  .theme-slide, .theme-slide * { transition: none !important; }
}

/* Ökosystem: Impulse ruhen außerhalb des sichtbaren Bereichs und bei verborgener Seite */
.eco-stage[data-idle][data-anim] .eco-edge .eco-pulse { animation-play-state: paused; }

/* Legende im festen Raster: bricht unabhängig von der geladenen Schrift gleich um (keine Layoutverschiebung) */
@media (min-width: 1024px) { .eco-legend { display: grid; grid-template-columns: repeat(3, max-content); } }

/* ---------- Über mich: beruflicher Werdegang (Phase 5) ---------- */
.career { border-top: var(--rule-strong); }
.career-item { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 8px clamp(20px, 4vw, 64px); padding: 18px 0; border-bottom: var(--rule); }
.career-when { font: 500 0.8125rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--red-ui); }
.career-role { font: 600 clamp(1.25rem, 1rem + 0.6vw, 1.625rem)/1.15 var(--display); text-transform: uppercase; margin-bottom: 6px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .career-item { grid-template-columns: minmax(0, 1fr); } }
