/* M-DAT: direkt gepflegte Quelle ohne Build-Schritt.
   Lesbar halten; bei Änderungen die ?v=SHA-256-Werte in allen HTML-Seiten aktualisieren. */

/* Markenfarben und gemeinsame Maße */
:root {
  color-scheme: light dark;
  --brand: #ff0000;
  --red: #c52228;
  --ink: #202124;
  --muted: #5b6068;
  --paper: #fff;
  --soft: #f5f5f3;
  --line: #dcdddf;
  --dark-line: #4b4e54;
  --on-dark: #c7cbd1;
  --wrap: 1160px;
}

/* Grundelemente und Typografie */
* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font: 16px/1.65 'Open Sans',system-ui,sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--red);
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  overflow-wrap: break-word;
}

h1,
h2 {
  letter-spacing: -.045em;
}

h1 {
  font-size: clamp(2.55rem,4.6vw,4.3rem);
  font-weight: 700;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(2rem,3.3vw,3rem);
  font-weight: 650;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -.02em;
}

p {
  margin-bottom: 20px;
}

/* Seitenbreite, Sprunglink und Fokus */
.wrap {
  width: min(var(--wrap),calc(100% - 80px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: 8px;
  padding: 12px 20px;
  background: #fff;
  z-index: 50;
  transform: translateY(-200%);
  border: 1px solid var(--red);
}

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

main:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

/* Kopfbereich und Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: block;
  flex-shrink: 0;
  width: 210px;
}

.brand picture {
  display: block;
}

.site-header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--red);
}

.site-header nav a[aria-current="location"] {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.site-header .nav-contact {
  gap: 20px;
  border: 1px solid var(--line);
  padding: 8px 16px;
}

.site-header .nav-contact[aria-current="location"] {
  border-color: var(--red);
}

.menu-toggle {
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: 600 .875rem/1.5 'Open Sans',system-ui,sans-serif;
  cursor: pointer;
}

.menu-toggle:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.menu-symbol {
  width: 18px;
  height: 12px;
  border-block: 2px solid currentColor;
  position: relative;
}

.menu-symbol:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  border-top: 2px solid currentColor;
}

.menu-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: #fff;
}

.menu-toggle[aria-expanded="true"] .menu-symbol {
  height: 2px;
  border-bottom: 0;
}

.menu-toggle[aria-expanded="true"] .menu-symbol:after {
  display: none;
}

.menu-toggle[hidden],
.site-header nav[hidden] {
  display: none;
}

/* Hero und erste Kontaktwege */
.hero {
  background: var(--ink);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-block: 64px 48px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .16em;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 22px;
}

.hero .eyebrow,
.contact .eyebrow {
  color: #ff8e91;
}

.hero h1 {
  font-size: clamp(2.4rem,3.8vw,3.6rem);
  line-height: 1.18;
}

.hero h1 span {
  color: #fff;
  border-bottom: 3px solid var(--brand);
  padding-bottom: 4px;
  display: inline-block;
}

.hero-description {
  max-width: 47ch;
  font-size: 1.075rem;
  color: var(--on-dark);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 14px 22px;
  min-height: 52px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: .9rem;
  border: 1px solid transparent;
}

.button:hover {
  background: #a91d22;
}

.hero a:focus-visible,
.contact a:focus-visible {
  outline-color: #fff;
}

.text-link {
  color: #fff;
  font-size: .9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.text-link:hover {
  text-decoration: underline;
}

.hero-visual {
  margin: 0;
  min-width: 0;
  position: relative;
}

.hero-visual:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 3px;
  background: var(--brand);
  z-index: 1;
}

.hero-visual picture {
  display: block;
  background: #292b30;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: 62% center;
}

.hero-visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: .625rem;
  letter-spacing: .035em;
  color: var(--on-dark);
}

.hero-bottom {
  border-top: 1px solid var(--dark-line);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: .75rem;
  color: var(--on-dark);
}

.hero-bottom>span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-bottom>span:before {
  content: '';
  width: 5px;
  height: 5px;
  background: #ff8e91;
  flex-shrink: 0;
}

/* Abschnitte, Leistungsbilder und Leistungen */
.section {
  padding-block: 88px;
  scroll-margin-top: 20px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading>p {
  max-width: 43ch;
  color: var(--muted);
  margin: 0 0 4px;
  justify-self: end;
}

.service-visuals {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.service-image-link {
  display: block;
  min-width: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  background: #fff;
}

.service-image-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--soft);
}

.service-image-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  min-height: 52px;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.5;
}

.service-image-label>span {
  color: var(--red);
  flex-shrink: 0;
}

.service-image-link:hover {
  border-color: var(--red);
}

.service-image-link:hover .service-image-label {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.service-visual-note {
  font-size: .75rem;
  color: var(--muted);
  margin: 12px 0 32px;
}

.services {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: 56px;
}

.service {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  min-width: 0;
  scroll-margin-top: 28px;
}

.service-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.service-symbol {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--ink);
}

.service-symbol svg {
  display: block;
}

.symbol-accent {
  stroke: var(--red);
}

.service-label {
  font-size: .625rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
}

.service h3 {
  margin-bottom: 0;
}

.service-body>p {
  color: var(--muted);
  font-size: .925rem;
  max-width: 54ch;
  margin-bottom: 20px;
}

.service-body .service-benefit {
  font-size: 1.075rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 12px;
}

.service h4 {
  font-size: .75rem;
  margin: 24px 0 10px;
  font-weight: 700;
}

.service-tasks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: .875rem;
  color: var(--muted);
  max-width: 54ch;
}

.service-tasks li {
  position: relative;
  padding-left: 17px;
  margin-top: 8px;
}

.service-tasks li:before {
  content: '';
  position: absolute;
  left: 0;
  top: .7em;
  width: 5px;
  height: 5px;
  background: var(--red);
}

.service-body .service-connection {
  border-left: 2px solid var(--red);
  padding-left: 16px;
  margin-bottom: 0;
  font-size: .8125rem;
}

.service:last-child {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  padding-bottom: 38px;
}

.service:last-child .service-body {
  display: contents;
}

.service:last-child .service-heading {
  grid-column: 1;
  grid-row: 1/3;
  align-self: start;
}

.service:last-child .service-benefit {
  grid-column: 2;
  grid-row: 1;
}

.service:last-child .service-body>p:not(.service-benefit):not(.service-connection) {
  grid-column: 2;
  grid-row: 2;
}

.service:last-child h4 {
  grid-column: 1;
  grid-row: 3;
  margin-top: 4px;
}

.service:last-child .service-tasks {
  grid-column: 1;
  grid-row: 4;
  margin-bottom: 0;
}

.service:last-child .service-connection {
  grid-column: 2;
  grid-row: 3/5;
  align-self: start;
  margin-top: 4px;
}

.service-example {
  margin-top: 18px;
  padding: 32px;
  background: var(--soft);
  border-top: 3px solid var(--red);
}

.example-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}

.example-intro .eyebrow {
  grid-column: 1/-1;
  margin-bottom: 14px;
  font-size: .625rem;
}

.example-intro h3 {
  font-size: 1.4rem;
  max-width: 28ch;
  margin-bottom: 20px;
}

.example-intro>p:last-child {
  color: var(--muted);
  font-size: .875rem;
  margin-bottom: 24px;
}

.service-chain {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 28px;
  list-style: none;
  counter-reset: service-chain;
  margin: 8px 0 24px;
  padding: 0;
}

.service-chain li {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  counter-increment: service-chain;
}

.service-chain li:before {
  content: '0' counter(service-chain);
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
}

.service-chain a {
  font-weight: 650;
  font-size: .875rem;
}

.service-chain p {
  font-size: .8125rem;
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 29ch;
}

.example-coordination {
  font-size: .8125rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 16px;
}

.example-coordination a {
  font-weight: 650;
}

.service-contact {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 650;
}

/* Arbeitsweise und Zusammenarbeit */
.work-section {
  border-top: 1px solid var(--line);
  background: #fff;
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: 80px;
  align-items: start;
}

.work-intro>p:not(.eyebrow) {
  color: var(--muted);
  font-size: .925rem;
  max-width: 46ch;
  margin-bottom: 28px;
}

.work-intro h2 {
  font-size: clamp(2rem,3vw,2.7rem);
}

.work-visual {
  margin: 0;
  max-width: 480px;
  border-top: 3px solid var(--red);
}

.work-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: contain;
  background: var(--soft);
}

.work-visual figcaption {
  font-size: .6875rem;
  color: var(--muted);
  padding-top: 10px;
}

.work-steps {
  padding: 0;
  margin: 0;
  list-style: none;
}

.work-steps li {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.work-number {
  color: var(--red);
  font-size: .75rem;
  line-height: 1.5;
  font-weight: 700;
  padding-top: 3px;
}

.work-steps h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.work-steps p {
  font-size: .875rem;
  color: var(--muted);
  max-width: 54ch;
  margin: 0;
}

/* Kundenwand und Leistungsfilter */
.clients-section {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.client-controls {
  margin-bottom: 28px;
}

.client-filters {
  padding: 0;
  border: 0;
  margin: 0;
  min-width: 0;
}

.client-filters legend {
  padding: 0;
  margin-bottom: 12px;
  font-weight: 650;
  font-size: .8125rem;
}

.client-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-filter-buttons button {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 18px;
  font: 600 .8125rem/1.5 'Open Sans',system-ui,sans-serif;
  color: var(--ink);
  background: #fff;
  border: 1px solid #777c84;
  cursor: pointer;
  overflow-wrap: break-word;
}

.client-filter-buttons button:hover {
  border-color: var(--red);
  color: var(--red);
}

.client-filter-buttons button[aria-pressed="true"] {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.client-filter-buttons button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.client-status {
  font-size: .8125rem;
  color: var(--muted);
  margin: 16px 0 0;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 16px;
}

.client {
  background: #fff;
  border: 1px solid var(--line);
  min-width: 0;
  padding: 24px 20px;
}

.client[hidden],
.client-controls[hidden] {
  display: none;
}

.client-logo {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.client-logo img {
  width: 100%;
  height: 96px;
  max-width: 200px;
  object-fit: contain;
}

.client h3 {
  font-size: .875rem;
  letter-spacing: 0;
  line-height: 1.5;
  margin-bottom: 8px;
  overflow-wrap: break-word;
}

.client p {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.7;
  margin: 0;
  overflow-wrap: break-word;
}

/* Kundenabschluss und sachliches Unternehmensprofil */
.clients-outro {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.clients-outro p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.75;
}

.about-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.about-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 80px;
}

.about-layout > div {
  min-width: 0;
}

.about-lead {
  max-width: 48ch;
  margin-bottom: 0;
  font-size: 1.125rem;
  line-height: 1.75;
}

.about-copy p {
  max-width: 58ch;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.75;
}

@media (max-width: 1000px) {
  .about-layout {
    gap: 40px;
  }
}

/* Der zusätzliche Profillink bleibt auch vor dem Handy-Menü ohne Gedränge bedienbar. */
@media screen and (min-width: 901px) and (max-width: 1100px) {
  .header-inner {
    gap: 16px;
  }

  .brand {
    width: 190px;
  }

  .site-header nav {
    gap: 16px;
  }

  .site-header .nav-contact {
    gap: 12px;
    padding-inline: 12px;
  }
}

@media (max-width: 760px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media screen and (min-width: 1280px) {
  .clients-outro {
    margin-top: 32px;
  }

  .clients-outro p,
  .about-copy p {
    font-size: 1rem;
  }

  .about-layout {
    gap: 64px;
  }

  .about-lead {
    font-size: 1.25rem;
  }
}

/* Häufige Fragen */
.faq-section {
  background: #fff;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: 80px;
  align-items: start;
}

.faq-list {
  min-width: 0;
}

.faq-list details {
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list details[open] {
  background: var(--soft);
}

.faq-list summary {
  padding: 18px 20px;
  min-height: 64px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.6;
  cursor: pointer;
  overflow-wrap: break-word;
}

.faq-list summary::marker {
  color: var(--red);
}

.faq-answer {
  padding: 0 20px 20px;
}

.faq-answer p {
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.75;
  margin: 0;
  max-width: 60ch;
}

.faq-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 12px;
  font-size: .875rem;
  font-weight: 650;
}

/* Kontakt und Hinweise zur ersten Anfrage */
.contact {
  background: var(--ink);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 80px;
  align-items: start;
}

.contact h2 {
  font-size: clamp(2rem,3.4vw,3.1rem);
}

.contact-description {
  max-width: 46ch;
  color: var(--on-dark);
  margin-bottom: 28px;
}

.contact-channel {
  color: var(--on-dark);
  font-size: .75rem;
  margin-bottom: 6px;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 52px;
  max-width: 100%;
  color: #fff;
  font-size: clamp(1.3rem,2.5vw,2rem);
  font-weight: 650;
  letter-spacing: -.025em;
  text-decoration-color: #ff8e91;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}

.contact-mail:hover {
  color: #ff8e91;
}

.contact-mail span {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-address {
  border-top: 1px solid var(--dark-line);
  padding-top: 24px;
  margin-top: 32px;
}

.contact-address h3 {
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 12px;
}

.contact address {
  font-style: normal;
  font-size: .875rem;
  line-height: 1.8;
  color: var(--on-dark);
}

.contact address strong {
  font-weight: 650;
  color: #fff;
}

.inquiry-guide {
  padding: 32px;
  border: 1px solid var(--dark-line);
  background: #292b30;
}

.inquiry-guide>h3 {
  font-size: 1.125rem;
  line-height: 1.4;
  margin-bottom: 24px;
  max-width: 28ch;
}

.inquiry-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.inquiry-list li {
  padding: 18px 0;
  border-top: 1px solid var(--dark-line);
}

.inquiry-list strong {
  display: block;
  font-size: .875rem;
  font-weight: 650;
  margin-bottom: 6px;
}

.inquiry-list p {
  font-size: .8125rem;
  color: var(--on-dark);
  margin: 0;
  max-width: 46ch;
}

.inquiry-note {
  border-top: 1px solid var(--dark-line);
  padding-top: 18px;
  color: var(--on-dark);
  font-size: .8125rem;
  margin: 0;
  max-width: 46ch;
}

/* Fußzeile */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  padding-block: 52px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-grid>* {
  min-width: 0;
}

.footer-grid h2 {
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 5px 0 16px;
  line-height: 1.5;
}

.footer-company-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.025em;
  margin-bottom: 14px;
}

.footer-company address {
  font-size: .8125rem;
  font-style: normal;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid a {
  font-size: .8125rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.footer-grid nav a {
  color: var(--ink);
  text-decoration: none;
}

.footer-grid nav a:hover {
  color: var(--red);
  text-decoration: underline;
}

.footer-data dl {
  margin: 0;
  font-size: .8125rem;
  overflow-wrap: anywhere;
}

.footer-data dt {
  color: var(--muted);
  margin-bottom: 4px;
  font-size: .75rem;
}

.footer-data dd {
  margin: 0 0 18px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .75rem;
}

.footer-bottom p {
  margin: 0;
}

/* Rechtsseiten und Fehlerseite */
.legal-page,
.error-document {
  background: var(--soft);
}

.legal-content {
  width: min(900px,calc(100% - 80px));
  margin: 48px auto 72px;
  padding: 36px 48px 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  overflow-wrap: break-word;
  hyphens: manual;
  line-height: 1.8;
}

.legal-content .back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 20px;
  font-size: .875rem;
  font-weight: 600;
}

.legal-content .back:before {
  content: '';
  width: 8px;
  height: 8px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.legal-content h1 {
  font-size: clamp(1.5rem,5vw,3rem);
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -.04em;
}

.legal-content h2 {
  font-size: 1.125rem;
  line-height: 1.5;
  letter-spacing: -.015em;
  border-left: 3px solid var(--red);
  padding-left: 14px;
  margin: 40px 0 18px;
}

.legal-content p,
.legal-content>ul {
  max-width: 68ch;
}

.legal-content .stand {
  color: var(--muted);
  font-size: .875rem;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  max-width: none;
}

.legal-content dl {
  display: grid;
  grid-template-columns: minmax(160px,210px) minmax(0,1fr);
  gap: 0 24px;
  border-top: 1px solid var(--line);
  margin: 20px 0 32px;
}

.legal-content dt,
.legal-content dd {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  min-width: 0;
}

.legal-content dt {
  font-size: .8125rem;
  font-weight: 650;
  color: var(--muted);
}

.legal-content dd {
  margin: 0;
  font-size: .9375rem;
}

.legal-content>ul {
  padding-left: 24px;
}

.legal-content li+li {
  margin-top: 12px;
}

.legal-content footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 16px;
  font-size: .875rem;
}

.legal-content footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.legal-content .offen {
  display: inline-block;
  max-width: 100%;
  background: #fff3c4;
  color: var(--ink);
  border: 1px dashed #8d640b;
  border-left: 3px solid #8d640b;
  padding: 8px 12px;
  line-height: 1.75;
  vertical-align: top;
}

.error-page {
  min-height: 0;
  margin-block: 64px 80px;
  padding-block: 52px 56px;
  position: relative;
}

.error-page .eyebrow {
  margin-bottom: 20px;
}

.error-page h1 {
  max-width: 17ch;
  font-size: clamp(2rem,4vw,3.5rem);
  margin-bottom: 20px;
}

.error-page>p:not(.eyebrow) {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.error-page .button {
  position: relative;
}

/* Responsive Anpassungen */

@media (max-width:1000px) {
  .faq-layout {
    gap: 40px;
  }
  .contact-grid {
    gap: 40px;
  }
  .footer-grid {
    gap: 24px;
  }
  .work-layout {
    gap: 40px;
  }
  .hero-grid {
    gap: 36px;
    grid-template-columns: 1fr 1fr;
    padding-block: 52px 36px;
  }
  .hero-visual img {
    height: 420px;
  }
  .hero-actions {
    gap: 14px;
  }
  .client-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .section-heading {
    gap: 36px;
  }
  .services {
    column-gap: 32px;
  }
  .service:last-child {
    column-gap: 32px;
  }
}

@media (max-width:900px) {
  .header-inner {
    min-height: 72px;
    padding-block: 10px;
    gap: 10px 16px;
    flex-wrap: wrap;
  }
  .brand {
    width: 175px;
    max-width: calc(100% - 104px);
  }
  .menu-toggle:not([hidden]) {
    display: inline-flex;
  }
  .site-header nav {
    flex-basis: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-height: calc(100vh - 92px);
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    padding-bottom: 8px;
  }
  .site-header nav a {
    min-height: 48px;
    padding: 10px 8px;
    border-top: 1px solid var(--line);
    font-size: .9rem;
  }
  .site-header .nav-contact {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 10px 8px;
    gap: 12px;
  }
  .site-header nav a[aria-current="location"] {
    background: var(--soft);
  }
}

@media (max-width:760px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .faq-layout h2 {
    margin-bottom: 0;
  }
  .work-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .work-visual {
    max-width: 480px;
  }
  .work-steps li {
    grid-template-columns: 28px minmax(0,1fr);
    gap: 14px;
  }
  .wrap {
    width: calc(100% - 40px);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 48px 36px;
  }
  .hero h1 {
    font-size: clamp(2rem,7.6vw,3.4rem);
  }
  .hero-description {
    font-size: 1rem;
  }
  .hero-actions {
    gap: 18px;
  }
  .hero-visual img {
    height: auto;
    aspect-ratio: 16/9;
    object-position: center 48%;
  }
  .hero-visual figcaption {
    font-size: .625rem;
  }
  .hero-description {
    margin-bottom: 24px;
  }
  .hero-bottom {
    font-size: .7rem;
    flex-wrap: wrap;
    gap: 8px 24px;
  }
  .section {
    padding-block: 56px;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }
  .section-heading>p {
    justify-self: start;
    max-width: 48ch;
  }
  .services {
    grid-template-columns: 1fr;
  }
  .service:last-child {
    display: block;
    grid-column: auto;
  }
  .service:last-child .service-body {
    display: block;
  }
  .service:last-child h4 {
    margin-top: 24px;
  }
  .service:last-child .service-tasks {
    margin-bottom: 24px;
  }
  .service {
    padding-block: 28px;
  }
  .service-heading {
    gap: 16px;
    margin-bottom: 20px;
  }
  .service-symbol {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
  .service-example {
    padding: 24px 20px;
  }
  .example-intro {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .service-chain {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-chain p {
    max-width: 48ch;
  }
  .service-contact {
    align-items: flex-start;
    padding-block: 10px;
  }
  .service-contact span {
    flex-shrink: 0;
  }
  .client-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }
  .client {
    padding: 20px 14px;
  }
  .client-logo {
    height: 100px;
    margin-bottom: 16px;
  }
  .client-logo img {
    height: 84px;
  }
  .client-filter-buttons button {
    padding-inline: 14px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .inquiry-guide {
    padding: 24px;
  }
  .footer-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 28px;
    padding-block: 36px 28px;
  }
  .footer-company {
    grid-column: 1/-1;
  }
  .legal-content {
    width: calc(100% - 40px);
    margin-block: 32px 48px;
    padding: 24px;
  }
  .legal-content dl {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .legal-content dt {
    padding: 14px 0 4px;
    border-bottom: 0;
  }
  .legal-content dd {
    padding: 0 0 14px;
  }
  .legal-content a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .error-page {
    margin-block: 40px 56px;
    padding-block: 32px 36px;
  }
}

@media (max-width:600px) {
  .legal-content {
    width: calc(100% - 32px);
    padding: 20px 16px 28px;
  }
  .legal-content h2 {
    margin-top: 32px;
  }
  .legal-content .offen {
    padding: 8px 10px;
  }
  .faq-list summary {
    padding: 16px;
    min-height: 64px;
  }
  .faq-answer {
    padding: 0 16px 20px;
  }
  .service-visuals {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .service-image-link {
    display: grid;
    grid-template-columns: 120px minmax(0,1fr);
    gap: 14px;
    align-items: center;
  }
  .service-image-link img {
    height: 90px;
    aspect-ratio: 4/3;
    object-fit: cover;
  }
  .service-image-label {
    min-height: 90px;
    padding: 12px 12px 12px 0;
    font-size: .875rem;
    gap: 8px;
  }
  .service-visual-note {
    margin-bottom: 28px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .section {
    padding-block: 44px;
  }
  .section-heading {
    gap: 16px;
    margin-bottom: 28px;
  }
  .section h2 {
    font-size: clamp(1.75rem,7.5vw,2rem);
    line-height: 1.25;
  }
  .hero-grid {
    gap: 28px;
    padding-block: 36px 28px;
  }
  .hero .eyebrow {
    margin-bottom: 18px;
  }
  .hero h1 {
    margin-bottom: 24px;
  }
  .hero-description {
    line-height: 1.7;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-actions .text-link {
    align-self: flex-start;
    padding-inline: 4px;
  }
  .hero-visual img {
    aspect-ratio: 3/2;
    object-position: 62% center;
  }
  .hero-visual figcaption {
    font-size: .6875rem;
    gap: 12px;
    flex-wrap: wrap;
  }
  .hero-bottom {
    padding-block: 16px;
    gap: 8px 20px;
    font-size: .75rem;
  }
  .eyebrow {
    font-size: .75rem;
    letter-spacing: .12em;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .service {
    padding-block: 24px;
  }
  .service-heading {
    gap: 14px;
    margin-bottom: 18px;
  }
  .service-symbol {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  .service-symbol svg {
    width: 40px;
    height: 40px;
  }
  .service h3 {
    font-size: 1.125rem;
    line-height: 1.4;
  }
  .service-label {
    font-size: .6875rem;
    margin-bottom: 4px;
  }
  .service-body>p,
  .service-tasks {
    font-size: .9375rem;
  }
  .service-body .service-connection {
    font-size: .875rem;
  }
  .service h4 {
    font-size: .8125rem;
    margin-top: 20px;
  }
  .service-example {
    padding: 24px 20px;
    margin-top: 8px;
  }
  .example-intro .eyebrow {
    font-size: .6875rem;
  }
  .example-intro h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }
  .example-intro>p:last-child,
  .service-chain p,
  .example-coordination {
    font-size: .875rem;
  }
  .service-chain {
    gap: 16px;
    margin-bottom: 20px;
  }
  .service-chain li {
    padding-top: 12px;
  }
  .service-chain li:before {
    margin-bottom: 0;
  }
  .service-chain a,
  .example-coordination a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 10px;
  }
  .service-chain p {
    margin-top: 0;
  }
  .example-coordination a {
    display: flex;
    width: fit-content;
    max-width: 100%;
  }
  .service-contact {
    min-height: 44px;
    line-height: 1.6;
  }
  .work-layout {
    gap: 24px;
  }
  .work-intro>p:not(.eyebrow),
  .work-steps p {
    font-size: .9375rem;
  }
  .work-visual figcaption {
    font-size: .75rem;
  }
  .work-steps li {
    padding-block: 20px;
    grid-template-columns: 24px minmax(0,1fr);
    gap: 12px;
  }
  .work-steps h3 {
    line-height: 1.4;
    margin-bottom: 8px;
  }
  .client-controls {
    margin-bottom: 20px;
  }
  .client-filter-buttons {
    gap: 8px;
  }
  .client-filter-buttons button {
    font-size: .875rem;
    padding-inline: 14px;
    min-width: 44px;
  }
  .client-status {
    font-size: .875rem;
  }
  .client-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .client {
    display: grid;
    grid-template-columns: 84px minmax(0,1fr);
    gap: 4px 16px;
    align-content: center;
    padding: 12px 16px;
    min-height: 92px;
  }
  .client-logo {
    grid-column: 1;
    grid-row: 1/3;
    align-self: center;
    height: 64px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .client-logo img {
    height: 56px;
    max-width: 84px;
  }
  .client h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: .875rem;
    line-height: 1.4;
    margin: 0;
    overflow-wrap: normal;
  }
  .client p {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: .75rem;
    line-height: 1.6;
    overflow-wrap: normal;
  }
  .client[hidden] {
    display: none;
  }
  .contact-grid {
    gap: 28px;
  }
  .contact-address {
    margin-top: 24px;
  }
  .inquiry-guide {
    padding: 24px 20px;
  }
  .inquiry-list p,
  .inquiry-note {
    font-size: .875rem;
  }
  .footer-grid {
    gap: 24px;
    padding-block: 32px 24px;
  }
  .footer-grid a {
    font-size: .875rem;
    min-width: 44px;
  }
  .footer-company address,
  .footer-data dl {
    font-size: .875rem;
  }
  .footer-bottom {
    padding-block: 20px;
    gap: 8px;
    font-size: .8125rem;
  }
}

@media (prefers-reduced-motion:no-preference) {
  html {
    scroll-behavior: smooth;
  }
  a {
    transition: background-color .15s,color .15s;
  }
}

/* Desktop-Rhythmus: gemeinsames Raster und ruhige Lesespalten ab 1280 px.
   Die feste Obergrenze hält Fließtext auch auf großen Bildschirmen lesbar. */
@media screen and (min-width: 1280px) {
  :root {
    --wrap: 1440px;
    --desktop-gap: 64px;
    --section-space: clamp(80px, 6.25vw, 112px);
  }

  .wrap {
    width: min(var(--wrap), calc(100% - 128px));
  }

  .site-header nav a {
    font-size: .9375rem;
  }

  .hero-grid,
  .section-heading,
  .work-layout,
  .faq-layout,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--desktop-gap);
  }

  .hero-grid {
    padding-block: 72px 48px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 4.2vw, 4.5rem);
    line-height: 1.15;
    letter-spacing: -.04em;
    margin-bottom: 28px;
  }

  .hero-description {
    font-size: 1.125rem;
    line-height: 1.75;
    max-width: 46ch;
  }

  .hero-visual img {
    height: clamp(460px, 32vw, 540px);
  }

  .hero-visual figcaption,
  .work-visual figcaption {
    font-size: .75rem;
    line-height: 1.6;
  }

  .hero-bottom {
    font-size: .8125rem;
    padding-block: 24px;
  }

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

  .section h2 {
    font-size: clamp(2.5rem, 3vw, 3.25rem);
    line-height: 1.18;
    letter-spacing: -.035em;
    max-width: 24ch;
  }

  .section .eyebrow {
    margin-bottom: 20px;
  }

  .section-heading {
    align-items: start;
    margin-bottom: 48px;
  }

  .section-heading > p {
    justify-self: start;
    max-width: 52ch;
    padding-top: 40px;
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.75;
  }

  .service-visuals {
    gap: 24px;
  }

  .service-image-label {
    padding: 16px 20px;
    font-size: .9375rem;
  }

  .service-visual-note {
    margin-bottom: 40px;
    font-size: .8125rem;
  }

  .services,
  .service:last-child,
  .example-intro {
    column-gap: var(--desktop-gap);
  }

  .service {
    padding-block: 40px;
  }

  .service h3 {
    font-size: 1.5rem;
    line-height: 1.35;
  }

  .service-label {
    font-size: .6875rem;
    margin-bottom: 8px;
  }

  .service-body > p,
  .service-tasks,
  .work-steps p {
    font-size: 1rem;
    line-height: 1.75;
    max-width: 58ch;
  }

  .service-body .service-benefit {
    font-size: 1.125rem;
    line-height: 1.5;
  }

  .service h4 {
    font-size: .875rem;
    margin-top: 28px;
  }

  .service-body .service-connection {
    font-size: .9375rem;
  }

  .service-example {
    margin-top: 32px;
    padding: 40px;
  }

  .example-intro h3 {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .example-intro > p:last-child,
  .service-chain a,
  .service-chain p,
  .example-coordination,
  .service-contact {
    font-size: .9375rem;
    line-height: 1.75;
  }

  .service-chain {
    gap: 32px;
  }

  /* Helle Bänder führen vom Leistungsbereich zum dunklen Kontaktabschluss. */
  .work-section,
  .faq-section {
    background: var(--soft);
  }

  .clients-section,
  .faq-list details[open] {
    background: var(--paper);
  }

  .work-intro > p:not(.eyebrow) {
    font-size: 1.0625rem;
    line-height: 1.75;
    max-width: 52ch;
    margin-bottom: 32px;
  }

  .work-visual {
    max-width: 560px;
  }

  .work-steps li {
    padding-block: 28px;
  }

  .work-steps li:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .work-steps h3 {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .client-grid {
    gap: 24px;
  }

  .client {
    padding: 28px 24px;
  }

  .client h3 {
    font-size: 1rem;
  }

  .client p {
    font-size: .8125rem;
  }

  .faq-list summary {
    padding-block: 24px;
    font-size: 1.0625rem;
  }

  .faq-answer p {
    font-size: 1rem;
    line-height: 1.75;
    max-width: 58ch;
  }

  .contact-description {
    font-size: 1.0625rem;
    line-height: 1.75;
    max-width: 50ch;
  }

  .inquiry-guide {
    padding: 40px;
  }

  .inquiry-guide > h3 {
    font-size: 1.25rem;
  }

  .inquiry-list strong,
  .inquiry-list p,
  .inquiry-note {
    font-size: .9375rem;
    line-height: 1.75;
  }

  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--desktop-gap);
    padding-block: 64px 48px;
  }

  .footer-grid a,
  .footer-company address,
  .footer-data dl {
    font-size: .875rem;
  }
}

/* Mikro-Interaktionen: Zustände ohne dauernde Bewegung */
.service-image-link:focus-visible,
.client:hover,
.service:is(:hover,:focus-within) {
  border-color: var(--red);
}

.service-image-link:focus-visible .service-image-label {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button:focus-visible {
  background: #a91d22;
}

.service:focus-visible {
  outline-offset: 4px;
}

.menu-toggle:focus-visible {
  border-color: var(--red);
}

.faq-list summary:is(:hover,:focus-visible) {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media screen and (prefers-reduced-motion:no-preference) {
  @keyframes scroll-enter {
    from {
      opacity: .92;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  .scroll-enter {
    animation: scroll-enter .4s cubic-bezier(.2,.65,.3,1);
  }
  .scroll-enter:focus-within {
    animation: none;
  }
  .client,
  .service,
  .service-image-link,
  .menu-toggle,
  .client-filter-buttons button {
    transition: border-color .18s,color .18s,background-color .18s;
  }
  .button>span,
  .service-image-label>span,
  .service-contact>span {
    transition: transform .18s;
  }
  .button:is(:hover,:focus-visible)>span,
  .service-image-link:is(:hover,:focus-visible) .service-image-label>span,
  .service-contact:is(:hover,:focus-visible)>span {
    transform: translateX(2px);
  }
}

/* Barrierefreiheit: Fokus, Reflow und Kontrastmodus */
:where(a,button,summary):focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

:where(a,button,summary) {
  scroll-margin-block: 110px 16px;
}

:where(section,article)[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: -3px;
}

.section-heading>* {
  min-width: 0;
}

.service-heading>div,
.service-image-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width:900px) {
  .site-header nav a:focus-visible {
    outline-offset: -4px;
  }
}

@media screen and (max-height:480px) {
  .site-header {
    position: relative;
  }
  html {
    scroll-padding-top: 16px;
  }
  :where(a,button,summary) {
    scroll-margin-block: 16px;
  }
}

/* Automatisches dunkles Farbschema: Systemfarben und Druck bleiben eigenständig.
   Helle Textakzente und dunkle Aktionsflächen sind bewusst getrennt. */
@media screen and (prefers-color-scheme: dark) and (forced-colors: none) {
  :root {
    --ink: #f0f2f5;
    --muted: #b8c0cc;
    --paper: #171a20;
    --soft: #20242c;
    --line: #4b5563;
    --dark-line: #4b5563;
    --on-dark: #c7cbd1;
    --red: #ff929a;
  }

  .site-header,
  .site-footer,
  .hero,
  .contact {
    background: #121418;
  }

  .skip-link,
  .legal-content {
    background: var(--paper);
  }

  .service-image-link,
  .client,
  .menu-toggle,
  .client-filter-buttons button,
  .inquiry-guide,
  .hero-visual picture {
    background: var(--soft);
  }

  .work-section,
  .faq-section {
    background: var(--paper);
  }

  /* Diese Flächen sind auch Teil des Desktop-Abschnittsrhythmus. */
  @media (min-width: 1280px) {
    .work-section,
    .faq-section {
      background: var(--soft);
    }
  }

  /* Bildmarken werden weder invertiert noch umgefärbt. */
  .brand picture,
  .client-logo {
    background: #fff;
  }

  .client-logo {
    border-color: #fff;
  }

  .button,
  .client-filter-buttons button[aria-pressed="true"] {
    background: #c52228;
    color: #fff;
  }

  .menu-toggle[aria-expanded="true"] {
    background: #303741;
    color: var(--ink);
    border-color: var(--red);
  }

  .legal-content .offen {
    color: #fff0ca;
    background: #3d301c;
    border-color: #d5ab5e;
  }
}

@media screen and (forced-colors:active) {
  /* Nur Bildflächen bewahren Weiß; Text und Bedienelemente folgen der Systempalette. */
  .brand picture,
  .client-logo {
    forced-color-adjust: none;
    background: #fff;
    color: #202124;
  }
  :root {
    --brand: CanvasText;
    --red: LinkText;
    --ink: CanvasText;
    --muted: CanvasText;
    --paper: Canvas;
    --soft: Canvas;
    --line: CanvasText;
    --dark-line: CanvasText;
    --on-dark: CanvasText;
  }
  .hero,
  .contact,
  .inquiry-guide,
  .site-header,
  .site-footer,
  .legal-content {
    background: Canvas;
    color: CanvasText;
  }
  .hero .eyebrow,
  .contact .eyebrow,
  .hero h1 span,
  .contact address strong {
    color: CanvasText;
  }
  a,
  .site-header nav a,
  .footer-grid nav a,
  .hero .text-link,
  .contact a {
    color: LinkText;
  }
  .button,
  .menu-toggle,
  .client-filter-buttons button {
    color: ButtonText;
    background: ButtonFace;
    border-color: ButtonText;
  }
  .client-filter-buttons button[aria-pressed="true"],
  .menu-toggle[aria-expanded="true"] {
    color: ButtonText;
    background: ButtonFace;
    border: 3px double ButtonText;
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }
  .site-header nav a[aria-current="location"] {
    color: LinkText;
    border-bottom: 2px solid LinkText;
  }
  .legal-content .offen {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
  }
  .hero a:focus-visible,
  .contact a:focus-visible,
  :focus-visible {
    outline-color: Highlight !important;
  }
  .symbol-accent {
    stroke: CanvasText;
  }
  .faq-list summary::marker {
    color: ButtonText;
  }
  .hero-bottom>span:before,
  .service-tasks li:before {
    background: CanvasText;
  }
}

/* Druckansicht: schwarz auf weiß, mit ausgeschriebenen Linkadressen */
@page {
  size: A4;
  margin: 18mm 16mm;
}

@media print {
  *,
  *::before,
  *::after,
  *::marker {
    color: #000 !important;
    background: transparent !important;
    border-color: #000 !important;
    text-decoration-color: #000 !important;
    outline: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
  html,
  body {
    color-scheme: light;
    background: #fff !important;
    color: #000 !important;
    font-size: 10pt !important;
    line-height: 1.5 !important;
    scroll-padding-top: 0 !important;
  }
  nav,
  .site-header,
  .site-footer,
  .skip-link,
  .back,
  .legal-content>footer,
  .hero-actions,
  .service-contact,
  .service-visuals,
  .service-visual-note,
  .client-controls,
  .hero-visual,
  .work-visual,
  .service-symbol,
  .client-logo {
    display: none !important;
  }
  main,
  .wrap,
  .legal-content {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
  }
  .section,
  .hero {
    padding: 0 !important;
    margin: 0 0 6mm !important;
    border: 0 !important;
    scroll-margin: 0 !important;
  }
  .hero-grid,
  .section-heading,
  .services,
  .service:last-child,
  .service:last-child .service-body,
  .work-layout,
  .contact-grid,
  .faq-layout,
  .about-layout,
  .clients-outro,
  .client-grid {
    display: block !important;
  }
  h1 {
    font-size: 22pt !important;
    line-height: 1.2 !important;
    margin: 0 0 5mm !important;
  }
  h2 {
    font-size: 14pt !important;
    line-height: 1.4 !important;
    margin: 7mm 0 3mm !important;
    padding: 0 !important;
    border: 0 !important;
  }
  h3 {
    font-size: 11pt !important;
    line-height: 1.4 !important;
    margin: 4mm 0 2mm !important;
  }
  h4,
  summary {
    font-size: 10pt !important;
  }
  h1,
  h2,
  h3,
  h4,
  summary {
    break-after: avoid;
  }
  p,
  li,
  dt,
  dd {
    font-size: 10pt !important;
    line-height: 1.5 !important;
    orphans: 3;
    widows: 3;
  }
  p {
    max-width: none !important;
    margin: 0 0 3mm !important;
  }
  a {
    color: #000 !important;
    text-decoration: underline !important;
    overflow-wrap: anywhere;
  }
  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: .85em;
    font-weight: 400;
    overflow-wrap: anywhere;
  }
  a[href^='/']::after {
    content: ' (https://www.m-dat.eu' attr(href) ')';
  }
  a[href^='#']::after {
    content: ' (https://www.m-dat.eu/' attr(href) ')';
  }
  .legal-content .stand {
    padding: 0 0 4mm !important;
    margin: 0 0 5mm !important;
    border-bottom: 1px solid #000 !important;
  }
  .legal-content dl {
    display: grid !important;
    grid-template-columns: 42mm minmax(0,1fr) !important;
    gap: 0 4mm !important;
    margin: 4mm 0 !important;
    border: 0 !important;
    break-inside: avoid;
  }
  .legal-content dt {
    padding: 1mm 0 !important;
    border: 0 !important;
    font-weight: 700;
    break-after: avoid;
  }
  .legal-content dd {
    padding: 1mm 0 !important;
    border: 0 !important;
    break-before: avoid;
    break-inside: avoid;
  }
  .legal-content .offen {
    display: inline-block;
    border: 1px dashed #000 !important;
    padding: 2mm !important;
    break-inside: avoid;
  }
  .service,
  .client,
  .faq-list details {
    break-inside: avoid;
  }
  .service {
    padding: 0 0 4mm !important;
    border: 0 !important;
  }
  .service-heading {
    margin: 0 !important;
  }
  .service-body .service-connection {
    border-left: 1px solid #000 !important;
    padding-left: 3mm;
  }
  .service-example,
  .inquiry-guide,
  .contact-address {
    border: 0 !important;
    padding: 0 !important;
    margin: 4mm 0 !important;
  }
  .work-steps li {
    padding: 2mm 0 !important;
    border: 0 !important;
  }
  .client {
    padding: 0 0 2mm !important;
    border: 0 !important;
  }
  /* Ohne Filterbedienung enthält der Ausdruck immer die vollständige Liste. */
  .client[hidden] {
    display: block !important;
  }
  .client-grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 2mm 6mm !important;
  }
  .client h3 {
    margin: 0 0 1mm !important;
  }
  .client p {
    margin: 0 !important;
  }
  .section-heading,
  .work-intro,
  .faq-layout>div:first-child {
    break-after: avoid;
  }
  .service-example,
  .contact {
    break-inside: avoid;
  }
  .service-tasks {
    list-style: disc !important;
    padding-left: 5mm !important;
    margin: 2mm 0 !important;
  }
  .service-tasks li {
    padding-left: 0 !important;
    margin-top: 1mm !important;
  }
  .service-tasks li:before {
    display: none !important;
  }
  .inquiry-list li {
    padding-block: 2mm !important;
  }
  .inquiry-note {
    padding-top: 2mm !important;
  }
  .hero-bottom {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 0 4mm !important;
  }
  .faq-list details {
    border: 0 !important;
    margin: 0 0 3mm !important;
  }
  .faq-list summary {
    padding: 0 !important;
    min-height: 0 !important;
    list-style: none !important;
  }
  .faq-answer {
    padding: 1mm 0 0 !important;
    display: block !important;
    content-visibility: visible !important;
  }
  details::details-content {
    content-visibility: visible !important;
    display: block !important;
  }
  .faq-contact {
    margin: 0 !important;
    min-height: 0 !important;
  }
  .contact-mail {
    font-size: 12pt !important;
    min-height: 0 !important;
  }
  .error-page {
    min-height: 0 !important;
    margin: 0 !important;
  }
}
