/* ==========================================================================
   Steininger Consulting – Design-System
   Farben aus dem Altauftritt gemessen (header.jpg, footer.jpg, logo.png,
   logo.jpg); Buttons in leichtem Blau aus dem Kopfverlauf. Reihenfolge:
   1 Schrift · 2 Tokens · 3 Basis · 4 Layout · 5 Komponenten · 6 Module
   · 7 Seiten · 8 Hilfsklassen · 9 Bewegung
   ========================================================================== */

/* 1 Schrift ----------------------------------------------------------------
   Saira (SIL OFL 1.1, fonts/OFL.txt) – eckig-runde Grotesk nahe der alten
   Wortmarke. Selbst gehostet, nur Latin-Subset, variable Strichstärke.     */
@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/saira-latin-wght-normal.woff2?v=20260916") 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;
}

/* 2 Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Marke */
  --c-navy-900: #270670;      /* alte Tabellenrahmen */
  --c-navy-700: #10139e;      /* alte Überschriften, Wortmarke */
  --c-navy-500: #3b3aae;      /* Wortmarke, weiche Kante */
  --c-sky-700: #7797d0;       /* header.jpg links */
  --c-sky-600: #819fd5;
  --c-sky-500: #a1b7e0;
  --c-sky-400: #b5c5e6;
  --c-sky-300: #d8e1f2;
  --c-sky-100: #f1f4fb;       /* header.jpg rechts, footer.jpg links */
  --c-power: #dd1a23;         /* Power-Button logo.png */
  --c-power-ink: #b3131b;     /* Rot für Text, AA auch auf sky-100 */

  /* Buttons + Navigation: leichtes Blau aus dem Kopfverlauf statt der alten Rollover-Farben
     orange/gelb/rot (Wunsch des Inhabers, 2026-09). Je Zustand Fläche + Lichtkante (-hi) oben.
     Text navy-900: 11,9 / 9,0 / 5,8:1 auf normal / Hover / aktuell. */
  --c-btn: var(--c-sky-300);             /* normal */
  --c-btn-hi: var(--c-sky-100);
  --c-btn-hover: var(--c-sky-400);       /* Hover */
  --c-btn-hover-hi: var(--c-sky-300);
  --c-btn-current: var(--c-sky-600);     /* aktuell / gedrückt / Menü offen */
  --c-btn-current-hi: var(--c-sky-500);
  --c-btn-quiet: var(--c-sky-100);       /* Sekundär-Button, nur umrandet */
  --c-btn-edge: var(--c-sky-700);
  --c-btn-ink: var(--c-navy-900);

  /* Text und Flächen */
  --c-ink: #2e2f33;
  --c-ink-soft: #525357;      /* Claim-Grau logo.png */
  --c-paper: #ffffff;
  --c-line: #c5d0e8;
  --c-rail: #050505;
  --c-rail-violet: #6856e5;   /* Mittellinie der alten Schiene */

  --gradient-head: linear-gradient(90deg, #7797d0 0%, #819fd5 12%, #a1b7e0 38%,
    #c6d5ec 62%, #d8e1f2 75%, #f1f4fb 100%);
  --gradient-foot: linear-gradient(90deg, #f1f4fb 0%, #d8e1f2 25%, #b5c5e6 50%,
    #90abda 75%, #7797d0 100%);
  --bars-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Crect x='94.80' width='5.20' height='10' fill-opacity='1.00'/%3E%3Crect x='87.96' width='4.94' height='10' fill-opacity='0.94'/%3E%3Crect x='81.31' width='4.68' height='10' fill-opacity='0.89'/%3E%3Crect x='74.85' width='4.42' height='10' fill-opacity='0.83'/%3E%3Crect x='68.58' width='4.16' height='10' fill-opacity='0.78'/%3E%3Crect x='62.50' width='3.90' height='10' fill-opacity='0.72'/%3E%3Crect x='56.61' width='3.64' height='10' fill-opacity='0.67'/%3E%3Crect x='50.91' width='3.38' height='10' fill-opacity='0.61'/%3E%3Crect x='45.40' width='3.12' height='10' fill-opacity='0.56'/%3E%3Crect x='40.08' width='2.86' height='10' fill-opacity='0.51'/%3E%3Crect x='34.95' width='2.60' height='10' fill-opacity='0.45'/%3E%3Crect x='30.01' width='2.34' height='10' fill-opacity='0.40'/%3E%3Crect x='25.26' width='2.08' height='10' fill-opacity='0.34'/%3E%3Crect x='20.70' width='1.82' height='10' fill-opacity='0.29'/%3E%3Crect x='16.33' width='1.56' height='10' fill-opacity='0.23'/%3E%3Crect x='11.95' width='1.50' height='10' fill-opacity='0.20'/%3E%3Crect x='7.50' width='1.50' height='10' fill-opacity='0.20'/%3E%3Crect x='2.98' width='1.50' height='10' fill-opacity='0.20'/%3E%3C/svg%3E");

  /* Typografie: Saira für Marke/Überschriften/Zahlen, Arial wie im Altauftritt für Fließtext */
  --font-display: "Saira", "Arial Narrow", Arial, sans-serif;
  --font-body: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-base: 1.0625rem; /* 17 → 18 ab 62rem */
  --fs-md: 1.3125rem;   /* 21 */
  --fs-lg: clamp(1.3125rem, 1.15rem + 0.6vw, 1.5rem);          /* 21–24 */
  --fs-xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);            /* 28–36 */
  --fs-2xl: clamp(1.625rem, 1.1rem + 2.4vw, 3rem);             /* 26–48 */
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.6;

  /* Abstände (4er-Raster) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-pad: clamp(3rem, 2rem + 4vw, 5.5rem);

  /* Layout */
  --container: 72rem;
  --measure: 68ch;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 3.75rem;
  --radius-s: 3px;
  --radius-m: 6px;
}

@media (min-width: 62rem) {
  :root {
    --fs-base: 1.125rem;
    --header-h: 4.5rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  overflow-wrap: break-word;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--c-navy-700);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  hyphens: auto;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure,
table {
  margin: 0;
}

a {
  color: var(--c-navy-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--c-power-ink);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--c-power);
  outline-offset: 3px;
}

/* Auf Blau hat Rot zu wenig Kontrast (1,7:1 am Verlauf, 1,9:1 auf aktuellem Button) → Marineblau (≥ 5,3:1) */
.site-header :focus-visible,
.site-footer :focus-visible,
.btn:focus-visible {
  outline-color: var(--c-navy-900);
}

[id] {
  scroll-margin-top: calc(var(--header-h) + var(--s-5));
}

strong {
  font-weight: 700;
}

/* 4 Layout ---------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.flow > * + * {
  margin-top: var(--flow-space, 1em);
}

.section {
  padding-block: var(--section-pad);
}

.section--tint {
  background: var(--c-sky-100);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4) var(--s-6);
  margin-bottom: clamp(var(--s-6), 1.5rem + 2vw, var(--s-7));
}

/* Einspaltige Raster: Spalte darf schmaler als der längste Inhalt werden (sonst horizontaler Überlauf) */
.grid-2,
.facts,
.timeline,
.hero__grid,
.service-index,
.team,
.refs,
.contact__grid,
.legal {
  grid-template-columns: minmax(0, 1fr);
}

.grid-2 {
  display: grid;
  gap: var(--s-7) var(--s-8);
}

@media (min-width: 48rem) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 5 Komponenten ----------------------------------------------------------- */

/* 5.1 Balken – Signalbalken der Wortmarke, dick und dunkel am Wort */
.bars {
  display: inline-block;
  flex: none;
  width: 1.75em;
  height: 0.62em;
  background-color: currentColor;
  -webkit-mask: var(--bars-mask) no-repeat 0 0 / 100% 100%;
  mask: var(--bars-mask) no-repeat 0 0 / 100% 100%;
}

.bars--trail {
  transform: scaleX(-1);
}

/* 5.2 Wortmarke „steininger consulting" */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  width: 9.2em;
  color: var(--c-navy-700);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-shadow: 0.03em 0.05em 0.06em rgb(16 19 158 / 0.28);
}

.wordmark:hover {
  color: var(--c-navy-900);
  text-decoration: none;
}

.wordmark__row {
  display: flex;
  align-items: baseline;
  gap: 0.28em;
}

.wordmark__row .bars {
  flex: 1 1 auto;
  width: auto;
  height: 0.5em;
  text-shadow: none;
}

@media (min-width: 62rem) {
  .wordmark {
    font-size: 1.5rem;
  }
}

/* 5.3 Buttons – Nachfolger der alten Rollover-Grafiken, in leichtem Blau */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  padding: var(--s-2) var(--s-5);
  border: 1px solid var(--c-btn-edge);
  border-radius: var(--radius-m);
  background: var(--c-btn);
  box-shadow: inset 0 2px 0 var(--c-btn-hi);
  color: var(--c-btn-ink);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.btn:hover {
  background: var(--c-btn-hover);
  box-shadow: inset 0 2px 0 var(--c-btn-hover-hi);
  color: var(--c-btn-ink);
  text-decoration: none;
}

.btn:active {
  background: var(--c-btn-current);
  box-shadow: inset 0 2px 0 var(--c-btn-current-hi);
}

.btn--quiet {
  background: var(--c-btn-quiet);
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* 5.4 Download-Link auf das unveränderte Original-PDF */
.download {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  font-weight: 700;
  line-height: var(--lh-snug);
  text-decoration: none;
}

.download svg {
  flex: none;
  width: 1.5rem;
  height: 1.75rem;
  color: var(--c-power);
}

.download__label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.download:hover .download__label {
  text-decoration-thickness: 2px;
}

.download__meta {
  display: block;
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
  font-weight: 400;
}

/* 5.5 Abschnittstitel mit Balken */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  font-size: var(--fs-xl);
}

.section-title .bars {
  width: 1.6em;
  height: 0.55em;
}

/* 5.6 Listen */
.list {
  padding-left: 1.25em;
}

.list > li + li {
  margin-top: var(--s-2);
}

.list > li::marker {
  color: var(--c-navy-700);
}

/* 5.7 Fakten (Schlüssel/Wert) – Kontakt, Impressum, Team */
.facts {
  display: grid;
  gap: var(--s-1) var(--s-5);
}

.facts dt {
  color: var(--c-navy-700);
  font-family: var(--font-display);
  font-weight: 600;
}

.facts dd + dt {
  margin-top: var(--s-3);
}

@media (min-width: 40rem) {
  .facts {
    grid-template-columns: max-content minmax(0, 1fr);
    row-gap: var(--s-2);
  }

  .facts dd + dt {
    margin-top: 0;
  }

  .facts > dt {
    grid-column: 1;
  }

  .facts > dd {
    grid-column: 2;
  }
}

/* 5.8 Zeitleiste (Lebenslauf) */
.timeline {
  display: grid;
  gap: var(--s-4);
}

.timeline__row {
  display: grid;
  gap: var(--s-1);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-line);
}

.timeline dt {
  color: var(--c-navy-700);
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 30rem) {
  .timeline__row {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: var(--s-4);
  }
}

/* Tätigkeitszeilen innerhalb eines Zeitraums: je Zeile ein Punkt, Umbruch mit hängendem Einzug */
.timeline__detail {
  margin-top: var(--s-3);
  padding: 0 0 0 var(--s-4);
  border-left: 2px solid var(--c-sky-400);
  list-style: none;
}

.timeline__detail li {
  padding-left: var(--s-4);
  text-indent: calc(-1 * var(--s-4));
}

.timeline__detail li + li {
  margin-top: var(--s-1);
}

/* 5.9 Tabelle */
.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.table caption {
  text-align: left;
}

.table th,
.table td {
  padding: var(--s-3) var(--s-3);
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}

.table th:first-child,
.table td:first-child {
  padding-left: 0;
}

.table th:last-child,
.table td:last-child {
  padding-right: 0;
}

.table thead th {
  border-bottom: 2px solid var(--c-navy-700);
  color: var(--c-navy-700);
  font-family: var(--font-display);
  font-weight: 600;
  vertical-align: bottom;
}

.table tbody th {
  font-weight: 400;
}

.table .num {
  text-align: right;
  white-space: nowrap;
}

.table__group th {
  padding-top: var(--s-5);
  color: var(--c-navy-900);
  font-family: var(--font-display);
  font-weight: 600;
}

/* Beträge in der Fließtextschrift: Arial hat Tabellenziffern, Saira wirkt in Zahlenkolonnen zu breit */
.table td.num {
  font-weight: 700;
}

.table tbody + tbody tr:first-child > * {
  border-top: 2px solid var(--c-sky-400);
}

@media (max-width: 29.99rem) {
  .table th,
  .table td {
    padding-inline: var(--s-2);
  }
}

/* 5.10 Klausel mit hängender Aufzählung „a)" */
.clause {
  display: grid;
  grid-template-columns: 1.75em minmax(0, 1fr);
}

.clause__mark {
  color: var(--c-navy-700);
  font-weight: 700;
}

/* 6 Module ---------------------------------------------------------------- */

/* 6.1 Skip-Link */
.skip-link {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  background: var(--c-paper);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* 6.2 Kopf: blauer Verlauf, Schiene wie header.jpg */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--gradient-head);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -4px 0;
  height: 4px;
  background: linear-gradient(var(--c-rail) 0 1px, var(--c-rail-violet) 1px 2px,
    var(--c-rail) 2px 3px, rgb(0 0 0 / 0.12) 3px 4px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--header-h);
}

.nav-toggle {
  display: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: var(--s-2) var(--s-3);
  border: 1px solid transparent;
  border-radius: var(--radius-m);
  color: var(--c-navy-900);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.site-nav a:hover {
  border-color: var(--c-btn-edge);
  background: var(--c-btn-hover);
  box-shadow: inset 0 2px 0 var(--c-btn-hover-hi);
  color: var(--c-btn-ink);
}

.site-nav a[aria-current] {
  border-color: var(--c-btn-edge);
  background: var(--c-btn-current);
  box-shadow: inset 0 2px 0 var(--c-btn-current-hi);
  color: var(--c-btn-ink);
}

/* Ohne JavaScript: Navigation umbricht unter der Wortmarke */
@media (max-width: 61.99rem) {
  .site-header__inner {
    flex-wrap: wrap;
    padding-block: var(--s-2);
  }

  .js .site-header__inner {
    flex-wrap: nowrap;
    padding-block: 0;
  }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: 2.75rem;
    padding: var(--s-2) var(--s-4);
    border: 1px solid var(--c-btn-edge);
    border-radius: var(--radius-m);
    background: var(--c-btn);
    box-shadow: inset 0 2px 0 var(--c-btn-hi);
    color: var(--c-btn-ink);
    font-family: var(--font-display);
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
  }

  .js .nav-toggle:hover {
    background: var(--c-btn-hover);
    box-shadow: inset 0 2px 0 var(--c-btn-hover-hi);
  }

  .js .nav-toggle[aria-expanded="true"] {
    background: var(--c-btn-current);
    box-shadow: inset 0 2px 0 var(--c-btn-current-hi);
  }

  .nav-toggle__icon {
    width: 1.125rem;
    height: 0.875rem;
    background: linear-gradient(currentColor 0 2px, transparent 2px 6px,
      currentColor 6px 8px, transparent 8px 12px, currentColor 12px 14px);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__icon {
    background: linear-gradient(transparent 0 6px, currentColor 6px 8px, transparent 8px);
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    padding: var(--s-3) var(--gutter) var(--s-5);
    background: var(--c-sky-100);
    border-bottom: 1px solid var(--c-sky-500);
    box-shadow: 0 12px 24px -12px rgb(39 6 112 / 0.35);
  }

  .js .site-header.is-open .site-nav {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: var(--s-1);
  }

  .js .site-nav a {
    padding: var(--s-3) var(--s-4);
    font-size: var(--fs-md);
  }
}

/* 6.3 Hero */
.hero {
  padding-block: clamp(var(--s-7), 2rem + 5vw, var(--s-9));
}

.hero__grid {
  display: grid;
  align-items: center;
  gap: var(--s-7);
}

.hero__claim {
  justify-self: center;
  width: min(100%, 32.5rem);
}

.hero__claim img {
  width: 100%;
}

.hero__lead {
  color: var(--c-navy-700);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: var(--lh-snug);
}

.offer-list {
  margin-top: var(--s-5);
}

.offer-list dt {
  margin-top: var(--s-5);
  color: var(--c-navy-700);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: var(--lh-snug);
}

.offer-list dt:first-child {
  margin-top: 0;
}

.offer-list dd {
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
  font-weight: 600;
  line-height: var(--lh-tight);
  hyphens: auto;
}

.hero .btn-row {
  margin-top: var(--s-6);
}

@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--s-8);
  }
}

/* 6.4 Angebot */
.service-index {
  display: grid;
  gap: var(--s-5);
  padding: 0;
  list-style: none;
}

.service-index li {
  padding-top: var(--s-4);
  border-top: 3px solid var(--c-navy-700);
}

.service-index h3 {
  font-size: var(--fs-lg);
}

.service-index h3 a {
  text-decoration: none;
}

.service-index h3 a:hover {
  text-decoration: underline;
}

.service-index p {
  margin-top: var(--s-2);
  font-weight: 700;
  line-height: var(--lh-snug);
}

@media (min-width: 48rem) {
  .service-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-6);
  }
}

@media (min-width: 75rem) {
  .service-index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.offers {
  margin-top: clamp(var(--s-7), 2rem + 3vw, var(--s-8));
}

.offer h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--s-4);
}

/* 6.5 Mission – Band im alten Kopfverlauf */
.mission {
  background: var(--gradient-head);
  color: var(--c-navy-900);
}

.mission .section-title {
  color: var(--c-navy-900);
}

.mission__text {
  max-width: 40ch;
  color: var(--c-navy-900);
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  line-height: 1.22;
  text-wrap: pretty;
}

/* 6.6 Team */
.team {
  display: grid;
  gap: var(--s-6);
}

.team__photo img {
  width: 150px;
  border: 1px solid var(--c-sky-500);
  border-radius: var(--radius-s);
  background: var(--c-paper);
  padding: 4px;
}

.team__bio {
  max-width: var(--measure);
}

.team .facts {
  margin-top: var(--s-5);
}

.cv {
  margin-top: clamp(var(--s-7), 2rem + 3vw, var(--s-8));
}

.cv h3 {
  margin-bottom: var(--s-4);
  font-size: var(--fs-lg);
}

@media (min-width: 48rem) {
  .team {
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--s-7);
  }
}

/* 6.7 Kosten */
.price {
  max-width: 56rem;
}

.price h3 {
  margin-bottom: var(--s-2);
  font-size: var(--fs-lg);
}

.price .table-wrap {
  margin-block: var(--s-5) var(--s-6);
}

.price__notes {
  max-width: var(--measure);
}

/* 6.8 Referenzen */
.refs {
  display: grid;
  gap: var(--s-5);
  padding: 0;
  list-style: none;
}

.refs a {
  display: grid;
  grid-template-rows: 6rem auto;
  gap: var(--s-4);
  height: 100%;
  padding: var(--s-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  background: var(--c-paper);
  color: var(--c-ink);
  text-decoration: none;
}

.refs a:hover {
  border-color: var(--c-navy-700);
  color: var(--c-navy-700);
}

.refs__logo {
  display: grid;
  place-items: center start;
}

.refs__name {
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

@media (min-width: 48rem) {
  .refs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 6.9 Kontakt: links Firma/Sitz/Person, rechts die Erreichbarkeit – Reihenfolge wie im Original */
.contact__grid {
  display: grid;
  align-items: start; /* sonst streckt die kürzere Liste ihre Zeilen auf die Höhe der längeren */
  gap: var(--s-5) var(--s-8);
}

.contact .facts {
  align-items: baseline;
}

.contact .facts dd {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: var(--lh-snug);
}

.contact__imprint {
  margin-top: var(--s-6);
}

@media (min-width: 40rem) {
  .contact .facts {
    column-gap: var(--s-5);
    row-gap: var(--s-3);
  }
}

@media (min-width: 62rem) {
  .contact__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

/* 6.10 Fuß: Verlauf und Schiene wie footer.jpg */
.site-footer {
  position: relative;
  margin-top: 4px;
  padding-block: var(--s-6);
  background: var(--gradient-foot);
  color: var(--c-navy-900);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -4px 0 auto 0;
  height: 4px;
  background: linear-gradient(rgb(0 0 0 / 0.12) 0 1px, var(--c-rail) 1px 2px,
    var(--c-rail-violet) 2px 3px, var(--c-rail) 3px 4px);
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent);
  mask-image: linear-gradient(90deg, #000 70%, transparent);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-6);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-5);
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: block;
  padding-block: var(--s-2);
  color: var(--c-navy-900);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

/* Trennstriche wie „Impressum I Sitemap I …" im Altauftritt – erst, wenn alles in eine Zeile passt */
@media (min-width: 30rem) {
  .footer-nav {
    gap: 0;
  }

  .footer-nav li + li {
    border-left: 1px solid currentColor;
  }

  .footer-nav a {
    padding-inline: var(--s-3);
  }

  .footer-nav li:first-child a {
    padding-left: 0;
  }
}

.site-footer__copy {
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* 7 Seiten ---------------------------------------------------------------- */

/* 7.1 Seitentitel der Rechtsseiten – wie der alte Titel im Kopfverlauf */
.page-title {
  padding-block: clamp(var(--s-6), 1.5rem + 3vw, var(--s-8));
  background: var(--gradient-head);
}

.page-title h1 {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  color: var(--c-navy-900);
  /* Lange Versalien-Wörter tragen im HTML ein &shy; (DATENSCHUTZ|ERKLÄRUNG, GESCHÄFTS|BEDINGUNGEN) */
  font-size: clamp(1.625rem, 1rem + 3vw, 3rem);
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.page-title h1 .bars {
  display: none;
  width: 1.3em;
  height: 0.5em;
}

/* Lange Einwort-Titel in Versalien („DATENSCHUTZERKLÄRUNG") brauchen auf schmalen Geräten die volle Breite */
@media (min-width: 30rem) {
  .page-title h1 .bars {
    display: inline-block;
  }
}

.page-title__sub {
  margin-top: var(--s-2);
  color: var(--c-navy-900);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
}

/* 7.2 Rechtstext mit Inhaltsverzeichnis */
.legal {
  display: grid;
  gap: var(--s-6);
  padding-block: clamp(var(--s-6), 1.5rem + 3vw, var(--s-8));
}

.legal__aside > * + * {
  margin-top: var(--s-5);
}

.toc {
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--c-navy-700);
  background: var(--c-sky-100);
}

.toc__title {
  font-size: var(--fs-md);
}

.toc ol {
  margin-top: var(--s-2);
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.toc li + li {
  margin-top: var(--s-2);
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 2.2em;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h2 + * {
  margin-top: 0.75em;
}

.prose .facts {
  margin-top: 1em;
}

.prose__sign {
  margin-top: 2.5em;
  color: var(--c-navy-700);
  font-family: var(--font-display);
  font-weight: 600;
}

@media (min-width: 62rem) {
  .legal {
    grid-template-columns: 18rem minmax(0, 1fr);
    gap: var(--s-8);
    align-items: start;
  }

  .legal__aside {
    position: sticky;
    top: calc(var(--header-h) + var(--s-5));
    max-height: calc(100vh - var(--header-h) - var(--s-6));
    overflow-y: auto;
  }
}

/* 7.3 Impressum */
.imprint {
  padding-block: clamp(var(--s-6), 1.5rem + 3vw, var(--s-8));
}

.imprint .facts {
  max-width: 52rem;
}

.imprint__ecg {
  margin-top: var(--s-6);
}

/* 8 Hilfsklassen ---------------------------------------------------------- */
.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;
}

/* 9 Bewegung -------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Einziger inszenierter Moment: der Power-Button „geht in Betrieb" */
  .hero__claim img {
    animation: power-on 1.1s ease-out 0.25s both;
  }

  .btn,
  .site-nav a {
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
  }
}

@keyframes power-on {
  from {
    filter: grayscale(1) brightness(0.96);
  }

  to {
    filter: none;
  }
}
