/* DS Datentechnik – Website-Stylesheet
   Alle Ressourcen lokal (airgapped). Farben und Typografie: siehe brand.html */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-standard-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: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-standard-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-ext-standard-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;
}

:root {
  /* Marke */
  --brand: #39ae8e;          /* DS-Grün (RGB 57 174 142, wie in den Piktogrammen), nur Flächen / Grafik, nie Fließtext */
  --brand-strong: #26735e;   /* DS-Grün dunkel: Links und grüner Text auf Weiß (5,7:1) */
  --brand-deep: #194d3f;     /* DS-Grün tief: Hover, Text auf Hellgrün (9,7:1) */
  --brand-tint: #e8f7f3;     /* DS-Grün hell: ruhige Flächen */
  --brand-soft: #9fe0ce;
  --green: #39ae8e;          /* Bannerfläche: DS-Grün, weiße Schrift nur 2,8:1 */
  --on-green: #fff;          /* Schrift auf der Bannerfläche */
  --on-green-line: rgba(255, 255, 255, 0.4);
  --on-green-accent: #fff;

  /* Neutrale, leicht zum Markenton gestimmt */
  --ink: #14211f;
  --ink-2: #3f4d4a;
  --ink-3: #5f6b68;
  --line: #dbe2e0;
  --line-strong: #8a9794;
  --surface: #f3f6f5;
  --canvas: #ffffff;

  --font: "Archivo", Arial, "Helvetica Neue", sans-serif;

  /* Bewusst wenige Stufen: klein, Text, Einleitung, Zwischenüberschrift, Abschnitt, Seitentitel */
  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.875rem, 1.4rem + 1.6vw, 2.625rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 74rem;
  --radius: 6px;
  --radius-lg: 0;           /* eckig wie die Messetafeln */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  font-stretch: 100%;
  line-height: 1.6;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-stretch: 78%;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.005em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--step-4); line-height: 1.02; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.15; }
h4 { font-size: var(--step-1); line-height: 1.2; }

p, ul, ol, dl, blockquote, figure, address { margin: 0; }
address { font-style: normal; }
p { text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: var(--brand-strong); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); text-decoration-thickness: 2px; }

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

strong { font-weight: 650; }

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

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1rem; }
.prose > h2 + * { margin-top: 1.25rem; }
.prose > blockquote, .prose > h3 { margin-top: 2.25rem; }
.prose > h3 + * { margin-top: 0.5rem; }

.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-3); }
.small { font-size: var(--step--1); }
.center { text-align: center; margin-inline: auto; }
.nw { white-space: nowrap; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.5rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 2rem;
  min-height: 4.75rem;
}
.brand-link { display: block; flex: none; }
/* Logo immer genau 200 x 56 px: Streifenabstand 3 px, jeder Streifen liegt auf einer Pixelreihe (kein Flimmern) */
.brand-link img { display: block; width: 200px; height: 56px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  font: inherit; font-weight: 600; font-size: var(--step--1);
  color: var(--ink); background: none;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.5rem 1rem; cursor: pointer;
}

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0;
  color: var(--ink-2);
  font-size: var(--step--1);
  font-weight: 550;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
/* Hover: grüne Unterstreichung wächst von links (nur im Desktop-Menü) */
@media (min-width: 64.0625rem) and (hover: hover) {
  .site-nav a:not([aria-current]) {
    background: linear-gradient(var(--brand), var(--brand)) no-repeat left bottom / 0 2px;
    transition: background-size 250ms var(--ease-out), color 150ms var(--ease-out);
  }
  .site-nav a:not([aria-current]):hover { background-size: 100% 2px; }
}

.header-actions { flex: none; display: flex; gap: 0.5rem; }
.header-pill {
  font-size: var(--step--1);
  font-weight: 650; font-variant-numeric: tabular-nums;
  color: var(--brand-strong); text-decoration: none; white-space: nowrap;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform 120ms ease;
}
.header-pill:hover { border-color: var(--brand-strong); text-decoration: none; }
.header-support { background: var(--green); border-color: var(--green); color: var(--on-green); }
.header-support:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

@media (max-width: 74rem) {
  .header-phone { display: none; }
  .site-header .wrap { gap: 1.5rem; }
  .site-nav ul { column-gap: 1.25rem; }
}
/* Ab 64rem passt das Menü mit dem 200 px breiten Logo nicht mehr in eine Zeile */
@media (max-width: 64rem) {
  .js .nav-toggle { display: block; order: 2; margin-left: 0; }
  .header-actions { order: 1; margin-left: auto; }
  .site-nav { order: 3; }
  .header-pill { padding: 0.4375rem 0.875rem; }
  .site-header .wrap { flex-wrap: wrap; gap: 0 1rem; min-height: 4.25rem; }
  .site-nav { flex-basis: 100%; margin-left: 0; }
  .site-nav ul { flex-direction: column; gap: 0; padding-bottom: 0.75rem; }
  .site-nav a { padding: 0.875rem 0; border-bottom: 1px solid var(--line); font-size: var(--step-0); color: var(--ink); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--brand-strong); }
  .js .site-nav[data-open="false"] { display: none; }
}

@media (max-width: 30rem) {
  .site-header .wrap { gap: 0 0.5rem; }
  .brand-link img { width: 143px; height: 40px; }
  .header-pill, .nav-toggle { padding: 0.375rem 0.75rem; }
}

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.actions.center { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font: inherit; font-size: var(--step-0); font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid var(--green);
  background: var(--green); color: var(--on-green);
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 120ms ease;
}
.btn:active, .header-pill:active { transform: scale(0.98); }
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; text-decoration: none; }
.btn-quiet { background: transparent; color: var(--brand-strong); }
.btn-quiet:hover { background: var(--brand-tint); color: var(--brand-deep); }

.arrow-link { font-weight: 600; text-decoration: none; }
.arrow-link::after { content: "\2192"; display: inline-block; margin-left: 0.3em; transition: transform 200ms var(--ease-out); }
.arrow-link:hover::after { transform: translateX(4px); }
.arrow-link:hover { text-decoration: underline; }

/* ---------- Abschnitte ---------- */

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-surface { background: var(--surface); }

.section-head { display: grid; gap: 1.125rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 50rem; }
/* Nur eine Überschrift ohne Einleitung: näher an den Inhalt, sonst schwebt sie */
.section-head:has(> h2:only-child) { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section-head.center { justify-items: center; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.split {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 56rem) {
  .split, .split-even { grid-template-columns: minmax(0, 1fr); }
}
.split > div > .lead, .split > div > .muted { margin-top: 1.25rem; }
.sticky-col { position: sticky; top: 7rem; }
@media (max-width: 56rem) { .sticky-col { position: static; } }

.more { margin-top: 2.5rem; }
.tagline { font-weight: 650; color: var(--brand-strong); }
.about .prose > p:not(.tagline) { color: var(--ink-2); }

/* Grüne Fläche: Schriftfarbe über --on-green */
.on-green { background: var(--green); color: var(--on-green); }
.on-green h1, .on-green h2, .on-green h3 { color: var(--on-green); }
.on-green .lead { color: var(--on-green); }
.on-green a:not(.btn) { color: var(--on-green); }

.btn-light { background: #fff; border-color: #fff; color: var(--brand-deep); }
.btn-light:hover { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand-deep); }
.btn-outline-light { background: transparent; border-color: var(--on-green); color: var(--on-green); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--on-green); color: var(--on-green); }

/* ---------- Startseite: Hero ---------- */

/* Grüne Fläche: Titel und Buttons links, Fakten rechts über die volle Höhe des Titelblocks */
.hero-e {
  padding-top: clamp(3rem, 6.5vw, 5.5rem); padding-bottom: clamp(7rem, 12vw, 10rem);
}
.hero-e h1 { max-width: none; }
.hero .actions { margin-top: 2.5rem; }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 21.25rem);
}
.hero-grid > div { container-type: inline-size; }
/* Oberste Linie auf Höhe der Versalien von „ERP-Software“, unterste auf der Unterkante der Buttons */
.hero-figures {
  list-style: none; padding: clamp(0.5rem, 1vw, 0.875rem) 0 0;
  display: flex; flex-direction: column;
}
.hero-figures li {
  flex: 1; display: flex; align-items: center;
  border-top: 1px solid var(--on-green-line); padding-block: 0.75rem; font-weight: 500;
}
.hero-figures li:last-child { border-bottom: 1px solid var(--on-green-line); }

/* Titel in einer Größe, zwei Zeilen: Schriftgröße folgt der Spaltenbreite, damit die Branchenzeile nicht umbricht */
.hero-title { font-size: clamp(2.25rem, 100cqi / 13.4, 4.75rem); line-height: 1.04; letter-spacing: -0.005em; word-spacing: 0.08em; }
.hero-title-main, .hero-title-sub { display: block; white-space: nowrap; }

@media (max-width: 56rem) {
  .hero-e { padding-bottom: 5.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-title-sub { white-space: normal; text-wrap: balance; }
  .hero .actions { display: grid; }
  .hero-figures { padding-top: 0; }
  .hero-figures li { padding-block: 0.625rem; }
}

/* Messewand: Arbeitsgänge wie auf den Standwänden, graue Fugen zwischen weißen Tafeln */
.wall {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px; background: var(--line); border: 2px solid var(--line);
}
.wall li {
  background: var(--canvas);
  padding: clamp(1.25rem, 2.2vw, 1.75rem) 0.75rem;
  display: grid; grid-template-rows: auto 7.5rem; gap: 0.75rem; justify-items: center; align-items: center;
}
.wall h3 { font-size: var(--step-1); color: var(--ink-2); }
.wall img { width: 100%; height: 100%; object-fit: contain; transition: transform 450ms cubic-bezier(0.33, 1, 0.68, 1); }
.wall h3 { transition: color 300ms ease; }
@media (hover: hover) {
  .wall li:hover img { transform: translateY(-6px) scale(1.05); }
  .wall li:hover h3 { color: var(--brand-strong); }
}
@media (max-width: 72rem) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Wand ragt in die grüne Fläche hinein */
.wall-overlap { margin-top: calc(-1 * clamp(3rem, 7vw, 5rem)); position: relative; }
.wall-section + .section { padding-top: clamp(3.5rem, 7vw, 5.5rem); }

/* ---------- Kacheln (Ansprechwege, Branchen) ---------- */

/* Rasterfläche mit 2px-Fugen, eckig, ohne Schatten */
.tiles {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px; background: var(--line); border: 2px solid var(--line);
}
.tiles > li {
  background: var(--canvas);
  padding: clamp(1.75rem, 3vw, 2.25rem) clamp(1.5rem, 2.5vw, 2rem);
  /* gemeinsames Zeilenraster: Titel, Text und Fuß stehen in allen Kacheln auf gleicher Höhe */
  display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 0.875rem;
}
.tiles h3 { color: var(--brand-strong); }
.tiles p { color: var(--ink-2); }
.tiles p + p { margin-top: 0; }
.tiles .contact-line { font-weight: 650; font-variant-numeric: tabular-nums; }
.tiles .contact-line a { text-decoration: none; }
.tiles .contact-line a:hover { text-decoration: underline; }
/* Kontakt und Weiterlink immer gemeinsam am unteren Rand */
.tile-foot { margin-top: 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 0.375rem; }
.tile-foot .arrow-link { margin-top: auto; padding-top: 0.875rem; }
@media (max-width: 56rem) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tiles > li { position: relative; transition: transform 300ms cubic-bezier(0.33, 1, 0.68, 1), box-shadow 300ms ease; }
@media (hover: hover) {
  .tiles > li:hover { z-index: 1; transform: translateY(-4px); box-shadow: 0 0 0 2px var(--brand); }
  .tiles > li:hover .arrow-link::after { transform: translateX(4px); }
}

/* ---------- Modulkarten: weiß auf grauer Fläche, kräftige Oberkante ---------- */

.module-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none; padding: 0;
}
.module-list > li {
  background: var(--canvas);
  border-top: 5px solid var(--brand);
  padding: 1.75rem;
}
.module-list ul { list-style: none; padding: 0; margin-top: 1rem; color: var(--ink-2); line-height: 1.45; }
.module-list ul li { position: relative; padding-left: 1.25rem; }
.module-list ul li + li { margin-top: 0.4375rem; }
.module-list ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.625rem; height: 3px; background: var(--brand); }
@media (max-width: 64rem) { .module-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .module-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Grüner Banner (Rückverfolgung) ---------- */

.panel .split { position: relative; }

.panel .quote { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 5px solid var(--on-green-accent); }
.panel .quote p { font-size: var(--step-2); font-stretch: 78%; font-weight: 600; line-height: 1.25; }
.panel .quote footer, .panel .quote footer strong { color: var(--on-green); }

/* Rückverfolgung als Zeitleiste direkt auf Grün, Zeilen mit feinen Linien */
.trace-caption { font-weight: 650; margin-bottom: 0.5rem; color: var(--on-green-accent); }
.trace { list-style: none; padding: 0; }
.trace li { position: relative; padding: 1rem 0 1rem 2.25rem; border-top: 1px solid var(--on-green-line); }
.trace li::before {
  content: ""; position: absolute; left: 0.25rem; top: 1.3rem;
  width: 0.875rem; height: 0.875rem;
  border: 2px solid var(--on-green); border-radius: 50%;
}
.trace li:first-child::before { background: var(--on-green); }
.trace strong { display: block; font-weight: 650; line-height: 1.35; }
.trace span { display: block; font-size: var(--step--1); color: var(--on-green); opacity: 0.88; }

/* ---------- Zitate ---------- */

.quote p { font-size: var(--step-1); line-height: 1.45; }
.quote footer { margin-top: 0.625rem; font-size: var(--step--1); color: var(--ink-3); }
.quote footer strong { color: var(--ink); display: block; font-weight: 650; }

/* Zitat innerhalb von Fließtext: Linie hält Zitat und Quelle zusammen */
.block > .quote, .prose > .quote { border-left: 3px solid var(--brand); padding-left: 1.25rem; }
.block > .quote + * { margin-top: 2.25rem; }
.prose > .quote p { font-size: var(--step-0); }

/* Kundenstimmen: ein großes Zitat, zwei kleinere mit Trennlinien */
.quotes {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
}
.quote-lg { padding-top: 1.5rem; border-top: 5px solid var(--brand); }
.quote-lg p { font-size: var(--step-3); font-stretch: 78%; font-weight: 650; line-height: 1.12; text-wrap: balance; }
.quotes-side { display: grid; }
.quotes-side .quote { padding-block: 1.5rem; border-top: 1px solid var(--line-strong); }
.quotes-side .quote:last-child { border-bottom: 1px solid var(--line-strong); }
@media (max-width: 56rem) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Zeilenlisten (Branchen, Presse, Termine) ---------- */

.rows { list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
.rows > li { border-top: 1px solid var(--line); }
.row-link {
  display: grid; gap: 0.25rem 2rem;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) auto;
  align-items: baseline;
  padding: 1.5rem 0.75rem;
  margin-inline: -0.75rem;
  color: inherit; text-decoration: none;
  box-shadow: inset 0 0 0 var(--brand);
  transition: background-color 250ms ease, box-shadow 250ms var(--ease-out);
}
.row-link:hover { background: var(--brand-tint); box-shadow: inset 4px 0 0 var(--brand); color: inherit; }
.row-link h3 { font-size: var(--step-2); }
.row-link h3::before { content: ""; display: inline-block; width: 0.625rem; height: 0.625rem; margin-right: 0.75rem; background: var(--brand); border-radius: 2px; vertical-align: 0.12em; }
.row-link p { color: var(--ink-2); }
.row-link .go { color: var(--brand-strong); font-weight: 650; white-space: nowrap; }
.row-link .go::after { content: "\2192"; display: inline-block; margin-left: 0.3em; transition: transform 200ms var(--ease-out); }
.row-link:hover .go::after { transform: translateX(4px); }
@media (max-width: 48rem) {
  .row-link { grid-template-columns: minmax(0, 1fr); }
  .row-link .go { display: none; }
}

.press { list-style: none; padding: 0; }
.press > li {
  display: grid; gap: 0.25rem 2rem;
  grid-template-columns: 9rem minmax(0, 1fr);
  padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.press time, .press .src { font-size: var(--step--1); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.press h3 { font-size: var(--step-1); }
.press p { margin-top: 0.375rem; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 40rem) { .press > li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bilder ---------- */

.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); }
.photo figcaption { margin-top: 0.75rem; font-size: var(--step--1); color: var(--ink-3); }

.photo-pair { display: grid; gap: 1rem; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: end; }
.photo-pair .photo:last-child img { aspect-ratio: 3 / 4; object-position: 30% center; }
@media (max-width: 40rem) {
  .photo-pair { grid-template-columns: minmax(0, 1fr); }
  .photo-pair .photo:last-child img { aspect-ratio: 4 / 3; }
}

/* ---------- Unterseiten ---------- */

.page-head {
  padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 1.5rem; }

.crumbs { margin-bottom: 1rem; font-size: var(--step--1); color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.on-green .crumbs, .on-green .crumbs a { color: var(--on-green); }

.local-nav { font-size: var(--step--1); }
.local-nav h2 { font-size: var(--step--1); font-stretch: 100%; font-weight: 650; color: var(--ink-3); margin-bottom: 0.5rem; }
.local-nav ul { list-style: none; padding: 0; border-left: 1px solid var(--line); }
.local-nav a { display: block; padding: 0.375rem 0 0.375rem 1rem; color: var(--ink-2); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.local-nav a:hover { color: var(--brand-strong); border-left-color: var(--brand); }

.with-nav { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 13rem minmax(0, 1fr); align-items: start; }
.with-nav > .local-nav { position: sticky; top: 7rem; }
@media (max-width: 56rem) {
  .with-nav { grid-template-columns: minmax(0, 1fr); }
  .with-nav > .local-nav { position: static; }
  .local-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem; border-left: 0; }
  .local-nav a { padding: 0.375rem 0.875rem; border: 1px solid var(--line); border-radius: 999px; margin: 0; }
  .local-nav a:hover { border-color: var(--brand-strong); }
}

.block + .block { margin-top: clamp(3.5rem, 7vw, 5rem); padding-top: clamp(3.5rem, 7vw, 5rem); border-top: 1px solid var(--line); }
.block > h2 + * { margin-top: 1.25rem; }
.block > .lead + * { margin-top: 2rem; }
.block > h3 { margin-top: 2.25rem; }
.block > h3 + * { margin-top: 0.875rem; }

.ticks { list-style: none; padding: 0; columns: 2 18rem; column-gap: 2.5rem; }
.ticks li { break-inside: avoid; padding: 0.5rem 0 0.5rem 1.25rem; position: relative; border-bottom: 1px solid var(--line); line-height: 1.4; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 0.5rem; height: 2px; background: var(--brand); }
.ticks li ul { list-style: none; padding: 0.25rem 0 0; color: var(--ink-3); font-size: var(--step--1); }
.ticks li ul li { border: 0; padding: 0.125rem 0; }
.ticks li ul li::before { content: none; }
.ticks-1 { columns: 1; }

.plain-list { padding-left: 1.25rem; }
.plain-list li + li { margin-top: 0.375rem; }

.props { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); }
.props dt, .props dd { padding: 1.25rem 0; border-top: 1px solid var(--line); margin: 0; }
.props dt { font-weight: 650; line-height: 1.45; padding-right: 1.5rem; }
.props dd { color: var(--ink-2); }
@media (max-width: 40rem) {
  .props { grid-template-columns: minmax(0, 1fr); }
  .props dd { border-top: 0; padding-top: 0; }
}

/* Aufklappbare Stellen / Ausbildungsberufe */
.details { border-top: 1px solid var(--line); }
.details:last-of-type { border-bottom: 1px solid var(--line); }
.block > p + .details { margin-top: 1.75rem; }
.details summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 1.375rem 0;
}
.details summary::-webkit-details-marker { display: none; }
.details summary h3 { font-size: var(--step-2); }
.details summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand-strong); font-weight: 400; }
.details[open] summary::after { content: "\2212"; }
.details summary:hover h3 { color: var(--brand-strong); }
.details .details-body { padding-bottom: 2rem; display: grid; gap: 1.25rem; max-width: 68ch; }
.details .details-body h4 { font-size: var(--step-0); font-weight: 650; }
.details .details-body h4 + ul { margin-top: 0.5rem; }
.meta { font-size: var(--step--1); color: var(--ink-3); }

.contact-card { padding: 1.75rem; background: var(--canvas); border-top: 5px solid var(--brand); }
.block .contact-card { background: var(--surface); }
.contact-card h2 { margin-bottom: 0.75rem; }
.contact-card p + p { margin-top: 0.5rem; }

.contact-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.contact-grid h2 { font-size: var(--step-2); }
.big-line { font-size: var(--step-1); font-weight: 650; font-variant-numeric: tabular-nums; text-decoration: none; overflow-wrap: anywhere; }

/* ---------- Kontakt-Streifen & Fußzeile ---------- */

.cta-band { background: var(--brand-tint); }
.cta-band .wrap { display: grid; gap: 1.75rem; justify-items: center; text-align: center; }
.cta-band p { color: var(--ink-2); margin: 1rem auto 0; max-width: 52ch; }
.cta-band .actions { justify-content: center; }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--step--1); }
.site-footer .wrap { padding-block: 3.5rem 2rem; display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
.site-footer h2 { font-size: var(--step--1); font-stretch: 100%; font-weight: 650; color: var(--ink); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: 0.375rem; }
.footer-logo { display: block; width: 200px; height: 56px; margin-bottom: 1.25rem; }
.footer-legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-3); }
@media (max-width: 48rem) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Brand-Kit-Seite ---------- */

.swatches { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); list-style: none; padding: 0; }
.swatch { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.swatch-chip { height: 6rem; }
.swatch-info { padding: 0.875rem 1rem 1.125rem; font-size: var(--step--1); }
.swatch-info strong { display: block; font-size: var(--step-0); }
.swatch-info code { font-size: 0.875rem; }
.chip-brand { background: var(--brand); }
.chip-strong { background: var(--brand-strong); }
.chip-deep { background: var(--brand-deep); }
.chip-green { background: var(--green); }
.chip-tint { background: var(--brand-tint); }
.chip-ink { background: var(--ink); }
.chip-ink2 { background: var(--ink-2); }
.chip-ink3 { background: var(--ink-3); }
.chip-line { background: var(--line); }
.chip-surface { background: var(--surface); }

.logo-stage { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.logo-stage figure { margin: 0; }
.logo-stage .stage { padding: 2.5rem 2rem; border-radius: var(--radius-lg); display: grid; place-items: center; min-height: 12rem; border: 1px solid var(--line); background: #fff; }
.logo-stage .stage img { width: 100%; max-width: 22rem; }
.logo-stage .stage .img-small { width: 234px; }
/* doppelte Größe, damit die Streifen auf Pixelreihen liegen */
.logo-stage .stage .img-logo { width: 400px; }
.logo-stage figcaption { margin-top: 0.625rem; font-size: var(--step--1); color: var(--ink-3); }

.type-specimen { border-top: 1px solid var(--line); padding: 1.25rem 0; display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.5rem; align-items: baseline; }
.type-specimen .meta { line-height: 1.4; }
.specimen-h { font-size: var(--step-3); }
@media (max-width: 40rem) { .type-specimen { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; } }

.picto-grid { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.picto-grid li { background: var(--canvas); border: 2px solid var(--line); padding: 1rem; display: grid; gap: 0.5rem; justify-items: center; font-size: var(--step--1); color: var(--ink-3); }

.do-dont { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.do-dont h3 { font-size: var(--step-1); margin-bottom: 0.75rem; }

.contrast-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.contrast-table th, .contrast-table td { text-align: left; padding: 0.625rem 0.75rem 0.625rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.contrast-table th { font-weight: 650; }
.contrast-table td:nth-child(3) { font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  /* Kleine Hover-Rückmeldungen bleiben weich: nur per Maus ausgelöst, wenige Pixel Bewegung.
     Ohne diese Ausnahme springen sie auf Rechnern mit abgeschalteten Windows-Animationen (häufig bei Fernzugriff). */
  .wall img { transition-duration: 450ms !important; }
  .wall h3 { transition-duration: 300ms !important; }
  .arrow-link::after, .row-link .go::after { transition-duration: 200ms !important; }
  .tiles > li { transition-duration: 300ms !important; }
  .row-link { transition-duration: 250ms !important; }
  .site-nav a { transition-duration: 250ms !important; }
  .btn, .header-pill { transition-duration: 200ms, 200ms, 200ms, 120ms !important; }
}

@media print {
  .site-header, .cta-band, .nav-toggle { display: none; }
}
