/* Mayr Elektrotechnik
   Konzept: die Seite als Montageplatte. Verzinktes Hellgrau als Grund, Kabelkanäle als Trenner
   zwischen den Bereichen, Logo-Blau als Leiterfarbe. Eine Schrift (Archivo, selbst gehostet),
   breit und schwer für Überschriften, normal breit für Text. Inhalte linksbündig. */

@font-face {
  font-family: "Archivo ME";
  src:
    url("fonts/archivo.woff2") format("woff2-variations"),
    url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --plate: #eef1f3; /* verzinkte Montageplatte */
  --white: #ffffff;
  --ink: #1c2329;
  --grey: #58585a; /* Logo-Grau */
  --rule: #cbd2d6;
  --duct: #bcc4c9; /* Kabelkanal */
  --duct-slot: #8f999f;
  --blue: #007aad; /* Logo-Blau hell */
  --blue-dark: #00558f; /* Logo-Blau dunkel */
  --navy: #0b3654; /* tiefes Blau für Flächen */
  --on-navy: #e8f1f7;
  --on-navy-soft: #a9c4d8;
  --ph: #f1d13a;
  --ph-ink: #3b3300;

  --font: "Archivo ME", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 125%;
  --narrow: 87.5%;

  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--plate);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--white);
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--blue-dark);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: var(--wide);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}
p {
  margin: 0;
  max-width: 64ch;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.section {
  padding-block: clamp(64px, 9vw, 120px);
}
.section-lead {
  margin-top: 18px;
  color: var(--grey);
  font-size: 1.15rem;
}

/* ---------- Kabelkanal als Trenner ---------- */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 650 1rem/1 var(--font);
  font-stretch: 100%;
  padding: 16px 24px;
  background: var(--blue-dark);
  color: var(--white);
  border: 2px solid var(--blue-dark);
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 160ms var(--ease-out);
}
.btn:active,
.slider-controls button:active {
  transform: scale(0.97);
}
.btn:hover {
  background: var(--navy);
  border-color: var(--navy);
}
.btn--ghost {
  background: transparent;
  color: var(--blue-dark);
}
.btn--ghost:hover {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
}

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}
.brand {
  display: block;
}
.brand-logo {
  height: 54px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  font-size: 0.98rem;
  font-weight: 500;
}
.nav a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.nav .btn {
  margin-left: 10px;
  padding: 12px 18px;
  color: var(--white);
}
.nav .btn:hover {
  text-decoration: none;
}

.menu {
  display: none;
  position: relative;
}
.menu-toggle {
  font: inherit;
  background: var(--white);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 48px;
  cursor: pointer;
  padding: 11px 16px;
  border: 2px solid var(--blue-dark);
  border-radius: 3px;
  color: var(--blue-dark);
  font-weight: 650;
}
.menu-toggle[aria-expanded="true"] {
  background: var(--blue-dark);
  color: var(--white);
}
.menu-panel {
  position: absolute;
  z-index: 60;
  right: 0;
  top: calc(100% + 10px);
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--blue);
  display: grid;
  padding: 6px;
  box-shadow: 0 14px 30px rgba(11, 54, 84, 0.14);
}
.menu-panel a {
  color: var(--ink);
  text-decoration: none;
  padding: 11px 12px;
}
.menu-panel a:hover {
  background: var(--plate);
  color: var(--blue-dark);
}
@media (max-width: 1040px) {
  .nav {
    display: none;
  }
  .menu {
    display: block;
  }
}
@media (max-width: 520px) {
  .brand-logo {
    height: 42px;
  }
  .site-header .wrap {
    min-height: 68px;
  }
}

/* ---------- Hero ---------- */

/* ---------- Leistungen ---------- */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}
.checks li {
  position: relative;
  padding-left: 22px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}
@media (max-width: 640px) {
  .checks {
    grid-template-columns: minmax(0, 1fr);
  }
}
.terms {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  background: var(--white);
  border: 1px solid var(--rule);
}
.terms dt,
.terms dd {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
.terms dt {
  color: var(--grey);
  font-stretch: var(--narrow);
  font-weight: 600;
}
.terms dd {
  font-weight: 550;
}
.terms > :nth-last-child(-n + 2) {
  border-bottom: 0;
}
@media (max-width: 480px) {
  .terms {
    grid-template-columns: minmax(0, 1fr);
  }
  .terms dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

/* ---------- Ablauf ---------- */
.flow {
  list-style: none;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: flow;
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 21px;
  height: 3px;
  background: var(--blue);
}
.flow li {
  counter-increment: flow;
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
}
.flow li::before {
  content: counter(flow);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 3px solid var(--blue);
  color: var(--navy);
  font-weight: 800;
  font-stretch: var(--wide);
  font-size: 1.05rem;
  position: relative;
  margin-bottom: 8px;
}
.flow p {
  color: var(--grey);
  font-size: 0.98rem;
}
@media (max-width: 860px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .flow::before {
    left: 20px;
    top: 22px;
    bottom: 22px;
    width: 3px;
    height: auto;
  }
  .flow li {
    column-gap: 18px;
  }
  .flow li::before {
    grid-row: span 2;
    margin-bottom: 0;
  }
}

/* ---------- Komplettanlagen ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(36px, 5vw, 56px);
  border: 1px solid rgba(169, 196, 216, 0.35);
}
.split > div {
  padding: clamp(24px, 3.5vw, 40px);
  display: grid;
  gap: 16px;
  align-content: start;
}
.split > div + div {
  border-left: 1px solid rgba(169, 196, 216, 0.35);
  background: rgba(0, 122, 173, 0.18);
}
.split h3 {
  font-size: 1.4rem;
  font-weight: 800;
  font-stretch: var(--wide);
}
.split .role {
  color: var(--on-navy-soft);
  font-size: 0.95rem;
}
.split ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.split li {
  padding-block: 12px;
  border-top: 1px solid rgba(169, 196, 216, 0.25);
  font-weight: 550;
}
@media (max-width: 720px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split > div + div {
    border-left: 0;
    border-top: 1px solid rgba(169, 196, 216, 0.35);
  }
}

/* ---------- Branchen ---------- */
.sector-list {
  list-style: none;
  margin: clamp(32px, 5vw, 48px) 0 0;
  padding: 0;
}
.sector-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding-block: 20px;
  border-top: 1px solid var(--rule);
}
.sector-list li:last-child {
  border-bottom: 1px solid var(--rule);
}
.sector-list b {
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
  font-weight: 800;
  font-stretch: var(--wide);
  color: var(--navy);
  line-height: 1.1;
}
.sector-list span {
  color: var(--grey);
}
@media (max-width: 640px) {
  .sector-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

/* ---------- Referenzen ---------- */
.ref-section {
  background: var(--white);
}
.ref-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.slider-controls {
  display: flex;
  gap: 8px;
}
.slider-controls button {
  width: 48px;
  height: 48px;
  border: 2px solid var(--blue-dark);
  background: transparent;
  color: var(--blue-dark);
  font: 700 1.2rem/1 var(--font);
  border-radius: 3px;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    transform 160ms var(--ease-out);
}
.slider-controls button:hover {
  background: var(--blue-dark);
  color: var(--white);
}
.slider {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: grid;
  grid-auto-flow: column;
  padding-bottom: 14px;
  scrollbar-width: thin;
}
@media (max-width: 760px) {
  .slider {
    grid-auto-columns: 86%;
  }
}
.slide {
  scroll-snap-align: start;
  margin: 0;
  display: grid;
  gap: 12px;
}
.slide-img {
  max-width: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ph-ink);
  font-size: 0.92rem;
}
.slide-img span {
  background: var(--ph);
  padding: 6px 10px;
}
.slide figcaption {
  display: grid;
  gap: 2px;
}
.slide figcaption b {
  font-weight: 700;
  font-size: 1.08rem;
}
.slide figcaption span {
  color: var(--grey);
  font-size: 0.95rem;
}

/* ---------- Über uns ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.about-text {
  display: grid;
  gap: 18px;
}
.about-text p {
  color: #3a4148;
}
.years {
  font-size: clamp(5rem, 3rem + 9vw, 10rem);
  font-weight: 900;
  font-stretch: var(--wide);
  line-height: 0.85;
  color: var(--blue-dark);
  letter-spacing: -0.03em;
}
.years small {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--grey);
  margin-top: 14px;
  line-height: 1.4;
}
.principles {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
}
.principles li {
  padding-block: 14px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 16px;
}
.principles b {
  font-weight: 750;
}
.principles span {
  color: var(--grey);
}
@media (max-width: 860px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .principles li {
    gap: 2px;
  }
}

/* ---------- FAQ ---------- */
.faq-section {
  background: var(--white);
}
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) {
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
.faq {
  border-top: 2px solid var(--ink);
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  position: relative;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--blue-dark), var(--blue-dark)) center/14px 2px no-repeat,
    linear-gradient(var(--blue-dark), var(--blue-dark)) center/2px 14px no-repeat;
}
.faq details[open] summary::after {
  background: linear-gradient(var(--blue-dark), var(--blue-dark)) center/14px 2px no-repeat;
}
.faq summary:hover {
  color: var(--blue-dark);
}
.faq details p {
  padding-bottom: 20px;
  color: var(--grey);
}

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(32px, 5vw, 48px);
}
@media (max-width: 880px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
@media (max-width: 560px) {
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
}
.field {
  display: grid;
  gap: 6px;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-weight: 650;
  font-size: 0.95rem;
}
.field .opt {
  font-weight: 400;
  color: var(--grey);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  width: 100%;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #aab3b9;
  border-radius: 3px;
}
.field textarea {
  min-height: 160px;
  resize: vertical;
}
.field input[type="file"] {
  padding: 10px;
  border-style: dashed;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  margin-right: 14px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}
.field-hint {
  color: var(--grey);
  font-size: 0.88rem;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 173, 0.25);
}
.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--grey);
}
.consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--blue-dark);
  flex: none;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.form-actions small {
  color: var(--grey);
  font-size: 0.92rem;
}
.notice {
  grid-column: 1 / -1;
  padding: 14px 16px;
  background: var(--white);
  border-left: 4px solid var(--blue);
}
.notice--ok {
  border-left-color: #2f7d4b;
}

.contact-card {
  background: var(--navy);
  color: var(--on-navy);
  padding: clamp(24px, 3vw, 34px);
  display: grid;
  gap: 22px;
  border-radius: 3px;
}
.contact-card h3 {
  font-weight: 800;
  font-stretch: var(--wide);
}
.contact-card dl {
  margin: 0;
  display: grid;
  gap: 16px;
}
.contact-card dt {
  color: var(--on-navy-soft);
  font-size: 0.9rem;
}
.contact-card dd {
  margin: 2px 0 0;
  font-size: 1.12rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-card a {
  color: var(--white);
}

/* ---------- Fußzeile ---------- */
.site-footer {
  color: #b5bcc1;
  font-size: 0.93rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 32px;
}
.site-footer a {
  color: #fff;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

/* ---------- Rechtstexte ---------- */
.legal {
  padding-block: clamp(44px, 6vw, 80px);
}
.legal .wrap > * + * {
  margin-top: 18px;
}
.legal h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  color: var(--navy);
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 36px;
  font-stretch: 100%;
  font-weight: 750;
}
.legal p,
.legal li {
  max-width: 72ch;
}
.legal ul {
  padding-left: 20px;
}
.legal address {
  font-style: normal;
  line-height: 1.75;
}
.legal .hint {
  background: var(--ph);
  color: var(--ph-ink);
  padding: 10px 14px;
  max-width: 72ch;
  font-size: 0.93rem;
}

/* Korrekturen */
h1,
h2,
h3 {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.flow::before {
  right: calc((100% - 72px) / 4 - 22px);
}
@media (max-width: 860px) {
  .flow::before {
    right: auto;
  }
}
.about-text,
.split > div,
.slide,
.field,
.contact-card,
.contact-card dl,
.faq-wrap > div,
.principles {
  grid-template-columns: minmax(0, 1fr);
}
.flow li {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 860px) {
  .flow li {
    grid-template-columns: 44px minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .principles li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Fotos */
.slide-img {
  padding: 0;
}
.slide-img img {
  display: block;
}

/* ==========================================================================
   Gravurschild: gebürstetes Aluminium mit gravierter Schrift und zwei Schrauben.
   Dasselbe Schild sitzt auf der Tür und im Kopf des Kapitels, das sie öffnet.
   ========================================================================== */
.tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62em 1.9em 0.58em;
  border-radius: 2px;
  background: repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.16) 0 1px,
      rgba(0, 0, 0, 0.025) 1px 2px,
      transparent 2px 4px
    ),
    linear-gradient(180deg, #f3f5f6 0%, #dfe4e7 48%, #cdd3d7 100%);
  border: 1px solid #8e979d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 1px 1px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.18);
}
.tag::before,
.tag::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.5em;
  height: 0.5em;
  margin-top: -0.25em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #b9c0c4 45%, #727a80 100%);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.35);
}
.tag::before {
  left: 0.62em;
}
.tag::after {
  right: 0.62em;
}
.tag-text {
  font-family: var(--font);
  font-weight: 620;
  font-stretch: 100%;
  letter-spacing: 0.035em;
  line-height: 1;
  color: #24313a;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75),
    0 -1px 0 rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

/* ==========================================================================
   Kapitel: Kopf mit dem Innenleben des jeweiligen Schranks
   ========================================================================== */
.chapter-head {
  position: relative;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  min-height: clamp(360px, 56vh, 600px);
  padding-block: 72px 60px;
  background-color: var(--navy);
  background-position: var(--pos, 50% 30%);
  background-repeat: no-repeat;
}
.chapter-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 20, 31, 0.94) 0%, rgba(6, 20, 31, 0.78) 38%, rgba(6, 20, 31, 0.3) 100%),
    linear-gradient(0deg, rgba(6, 20, 31, 0.55) 0%, transparent 45%);
}
.chapter-head .wrap {
  position: relative;
  width: 100%;
  display: grid;
  gap: 20px;
  justify-items: start;
}
.chapter-head .tag {
  font-size: 0.95rem;
}
.chapter-head h2 {
  color: #fff;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.7rem);
  font-weight: 800;
  font-stretch: 112%;
  max-width: 18ch;
}
.chapter-head p {
  color: #c8d9e6;
  font-size: 1.15rem;
  max-width: 54ch;
}

.chapter-body {
  padding-block: clamp(56px, 8vw, 104px);
}
.chapter-body > .wrap + .wrap {
  margin-top: clamp(56px, 7vw, 88px);
}
.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #2f373e;
  max-width: 62ch;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.col-text {
  display: grid;
  gap: 28px;
}
.two-col .checks {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 860px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}
.sub-title {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  font-weight: 800;
  font-stretch: 112%;
  color: var(--navy);
}
.flow h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}
.chapter-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Partnerschaft auf hellem Grund */
.chapter .split {
  border: 1px solid var(--rule);
  background: var(--white);
}
.chapter .split > div + div {
  border-left-color: var(--rule);
  background: #f7f9fa;
}
.chapter .split h3 {
  color: var(--navy);
}
.chapter .split .role {
  color: var(--grey);
}
.chapter .split li {
  border-top-color: var(--rule);
  color: var(--ink);
}
.chapter .lead + .split {
  margin-top: 36px;
}
@media (max-width: 720px) {
  .chapter .split > div + div {
    border-top-color: var(--rule);
  }
}

/* Weitere Leistungen */
.extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(32px, 5vw, 48px);
}
.extras article {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.extras h3 {
  font-size: 1.3rem;
  font-weight: 800;
  font-stretch: 112%;
  color: var(--navy);
}
.extras p {
  color: #3a4148;
}
@media (max-width: 860px) {
  .extras {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Kontakt-Kapitel */
.chapter .contact {
  margin-top: 0;
}

/* Überschriften etwas weniger breit für ruhigeres Schriftbild */
h1,
h2 {
  font-stretch: 112%;
}

/* ==========================================================================
   Startbild: Schrankreihe als Kopf der Seite
   - Überfahren öffnet die Tür mit Kurzvorschau (C)
   - Scrollen öffnet alle Türen und zeigt die Vorschauen (E)
   ========================================================================== */
:root {
  --hdr: 81px;
}
@media (max-width: 520px) {
  :root {
    --hdr: 69px;
  }
}

.showcase {
  position: relative;
  background-color: #172833;
  color: #e8f1f7;
}
.sc-track {
  position: relative;
}
.sc-pin {
  position: sticky;
  top: var(--hdr);
  height: calc(100svh - var(--hdr));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background-color: #172833;
  background-image: radial-gradient(
      ellipse 52% 60% at 50% 46%,
      rgba(165, 208, 236, 0.26) 0%,
      rgba(150, 196, 228, 0.09) 48%,
      transparent 76%
    ),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 150px),
    linear-gradient(180deg, #13222c 0%, #1b2f3c 55%, #24394a 100%);
}
.sc-head {
  padding-block: clamp(10px, 2.2vh, 26px) clamp(8px, 1.6vh, 16px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 32px;
}
.sc-head h1 {
  color: #fff;
  font-size: clamp(1.5rem, 0.9rem + 1.9vw, 2.5rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.04;
}
.sc-head p {
  color: #b9cfde;
  font-size: clamp(0.92rem, 0.86rem + 0.25vw, 1.05rem);
  max-width: 46ch;
}

.sc-stage {
  position: relative;
  container-type: size;
  min-height: 0;
  display: grid;
  justify-items: center;
  align-content: start;
}
.sc-unit {
  position: relative;
  z-index: 2;
  --colh: 66px;
  transform-origin: 50% 40%;
  will-change: transform;
}
.sc-row {
  position: relative;
  height: var(--h);
  display: flex;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 30px 80px rgba(0, 0, 0, 0.5);
}
.sc-plinth {
  height: calc(var(--h) * 0.05);
  background: linear-gradient(#1a2126, #11161a);
}
.sc-floor {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--colh) + 30px);
  background: linear-gradient(180deg, #243440 0%, #16232d 30%, #0c161d 100%);
  border-top: 1px solid rgba(190, 220, 240, 0.16);
}

/* Schränke */
.showcase .cabinet {
  position: relative;
  height: 100%;
  background: #2f373d;
}
.showcase .cab-l,
.showcase .cab-r {
  width: 28.57%;
}
.showcase .cab-m {
  width: 42.86%;
}
.showcase .cab-inner {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
}
.showcase .door {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  transform-style: preserve-3d;
  cursor: pointer;
  z-index: 3;
}
.showcase .door.hinge-l {
  transform-origin: 0 50%;
}
.showcase .door.hinge-r {
  transform-origin: 100% 50%;
}
.showcase .door.half-r {
  left: auto;
  right: 0;
}
.showcase .face,
.showcase .back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background-size: 100% 100%;
  overflow: hidden;
}
.showcase .back {
  transform: rotateY(180deg);
}
.showcase .door:focus-visible {
  outline: 2px solid #8fcbeb;
  outline-offset: 3px;
}

/* Schilder */
.showcase .tag--door {
  position: absolute;
}
.showcase .tag--span {
  position: absolute;
  display: flex;
  justify-content: center;
  padding-inline: 0;
}
.showcase .cabinet.is-hot .tag {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 2px rgba(0, 122, 173, 0.75),
    0 0 18px rgba(0, 150, 210, 0.55);
}

/* Kurzvorschau im Schrank */
.peek {
  position: absolute;
  z-index: 2;
  left: 6%;
  right: 6%;
  bottom: 7%;
  display: grid;
  gap: 6px;
  padding: 14px 16px 15px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  border-top: 3px solid var(--blue-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 200ms var(--ease-out),
    transform 240ms var(--ease-out);
  font-size: clamp(0.78rem, calc(var(--h) * 0.02), 0.98rem);
  line-height: 1.4;
}
.cab-m .peek {
  left: 22%;
  right: 22%;
}
.peek b {
  font-weight: 800;
  font-stretch: 112%;
  color: var(--navy);
  font-size: 1.12em;
  line-height: 1.15;
}
.peek span {
  color: #3a4148;
}
.peek em {
  font-style: normal;
  font-weight: 650;
  color: var(--blue-dark);
}
.peek:hover em,
.peek:focus-visible em {
  text-decoration: underline;
}
.peek:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.cabinet.is-peek .peek,
.showcase.is-revealed .peek {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 160ms;
}

/* Bereiche unter den Schränken */
.sc-cols {
  display: grid;
  height: var(--colh);
}
.sc-col {
  display: grid;
  gap: 3px;
  align-content: start;
  padding: 11px 14px 0;
  text-decoration: none;
  color: #dce8f0;
  min-width: 0;
  border-top: 2px solid transparent;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}
.sc-col b {
  font-weight: 750;
  font-stretch: 100%;
  color: #fff;
  font-size: clamp(0.92rem, 0.8rem + 0.35vw, 1.1rem);
}
.sc-col span {
  color: #a9c1d3;
  font-size: clamp(0.8rem, 0.75rem + 0.2vw, 0.92rem);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-col:hover,
.sc-col:focus-visible,
.sc-col.is-hot {
  border-top-color: #8fcbeb;
  background: rgba(143, 203, 235, 0.07);
  outline: none;
}

.sc-hint {
  position: absolute;
  z-index: 4;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  margin: 0;
  color: #8fa9bc;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .sc-unit {
    --colh: 46px;
  }
  .sc-col {
    padding: 9px 4px 0;
    text-align: center;
  }
  .sc-col b {
    font-weight: 700;
  }
  .sc-stage {
    align-content: center;
  }
  .sc-col span {
    display: none;
  }
  .peek {
    left: 3%;
    right: 3%;
    padding: 8px 9px;
    gap: 3px;
    font-size: 0.72rem;
  }
  .cab-m .peek {
    left: 14%;
    right: 14%;
  }
  .peek span {
    display: none;
  }
  .peek b {
    font-size: 1em;
  }
}
@media (hover: none) {
  .sc-hint::after {
    content: "";
  }
}
@media (prefers-reduced-motion: reduce) {
  .sc-track {
    height: auto;
  }
  .sc-pin {
    position: relative;
    top: 0;
  }
  .peek {
    transform: none;
    transition: opacity 150ms ease;
  }
  .btn:active,
  .slider-controls button:active {
    transform: none;
  }
}

@media (max-width: 760px) {
  .sc-head {
    display: grid;
  }
  .sc-hint {
    left: 0;
    right: 0;
    text-align: center;
  }
}

/* Ersatzteile-Kapitel und Kontakt-Abschnitt */
.chapter .extras {
  margin-top: 0;
}
.contact-section {
  background: var(--white);
}
.contact-body .contact {
  margin-top: clamp(28px, 4vw, 44px);
}

/* Fußzeile mit Kontaktdaten */
.site-footer {
  padding-block: 0;
  background: #172833;
}
.site-footer .footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto;
  gap: 28px 48px;
  align-items: start;
  padding-block: 44px 36px;
}
.footer-brand {
  display: grid;
  gap: 14px;
}
.footer-brand img {
  height: 46px;
  width: auto;
  background: #fff;
  padding: 6px 10px;
  border-radius: 2px;
}
.footer-brand p {
  color: #aeb7bd;
  max-width: 34ch;
}
.footer-brand img {
  /* Schwarz-Rot-Gold als Streifen unten im weißen Logofeld, per Hintergrund statt border-image (zuverlässiger in allen Browsern) */
  padding-bottom: 12px;
  background: linear-gradient(90deg, #000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%) left bottom / 100% 5px no-repeat, #fff;
}
.footer-brand .made-in {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #cfd6db;
}
.footer-brand .bavaria {
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.footer-contact {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}
.footer-contact dt {
  color: #8d979e;
  font-size: 0.85rem;
}
.footer-contact dd {
  margin: 2px 0 0;
  color: #fff;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.footer-contact a {
  color: #fff;
  text-decoration: none;
}
.footer-contact a:hover {
  text-decoration: underline;
}
.footer-cta {
  align-self: start;
}
.site-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 18px;
  border-top: 1px solid #343c42;
  color: #8d979e;
  font-size: 0.9rem;
}
@media (max-width: 960px) {
  .site-footer .footer-main {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .footer-contact {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .showcase .tag--door .tag-text {
    text-align: center;
    line-height: 1.15;
  }
}

/* Einheitliche Vorschaukarten in allen drei Schränken */
.showcase .peek {
  left: 50%;
  right: auto;
  transform: translate(-50%, 10px);
  padding: 1.05em 1.2em 1.1em;
  gap: 0.45em;
}
.showcase .cab-m .peek {
  left: 50%;
  right: auto;
}
.showcase .peek b {
  font-size: 1.22em;
}
.showcase .cabinet.is-peek .peek,
.showcase.is-revealed .peek {
  transform: translate(-50%, 0);
}
/* Mittelschild in derselben Schriftgröße wie die Seitenschilder */
/* Ruhigere, längere Scrollstrecke */
@media (max-width: 640px) {
  .showcase .peek {
    padding: 0.7em 0.8em;
  }
  .showcase .peek b {
    font-size: 1.05em;
  }
}

/* Schaltplan-Digitalisierung */
.digi {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--rule);
}
.chapter-body > .wrap + .digi {
  margin-top: clamp(48px, 6vw, 80px);
}
.digi-intro {
  display: grid;
  gap: 16px;
}
.digi-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
  counter-reset: digi;
}
.digi-steps li {
  counter-increment: digi;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 6px;
  align-content: start;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 20px;
  border-radius: 3px;
}
.digi-steps li::before {
  content: counter(digi);
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 3px solid var(--blue);
  color: var(--navy);
  font-weight: 800;
  font-stretch: 112%;
}
.digi-steps h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  align-self: center;
}
.digi-steps p {
  color: #3a4148;
  font-size: 0.98rem;
}
@media (max-width: 860px) {
  .digi-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
.digi-compare-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 112%;
  color: var(--navy);
}
.digi-benefits {
  list-style: none;
  margin: -12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.digi-benefits li {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 20px 22px 22px;
  background: var(--white);
}
.digi-benefits b {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.digi-benefits b::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 18px 18px no-repeat,
    var(--blue-dark);
}
.digi-benefits span {
  color: #3a4148;
  font-size: 0.98rem;
  line-height: 1.5;
}
@media (max-width: 980px) {
  .digi-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .digi-benefits {
    grid-template-columns: minmax(0, 1fr);
  }
  .digi-benefits li {
    padding: 16px 18px 18px;
  }
}

/* ==========================================================================
   Zweiteiliger Schrank: links Schaltschrankbau (einflügelig), rechts Service (Doppeltür)
   Breiten aus dem Foto: 796 / 1004 von 1800, Höhe 2000
   ========================================================================== */
.showcase .cab-a {
  width: 44.22%;
}
.showcase .cab-b {
  width: 55.78%;
}
.showcase .tag--door,
.showcase .tag--span {
  font-size: max(9px, calc(var(--h) * 0.03));
  top: 11%;
}

/* Kapitelköpfe mit dem Innenleben der zweiteiligen Schrankreihe */

/* Zwei Wege im Kapitel Schaltschrankbau */
.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}
.way {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(22px, 3vw, 32px);
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--blue-dark);
  border-radius: 3px;
  position: relative;
  transition: transform 200ms var(--ease-out);
}
.way::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 14px 30px rgba(11, 54, 84, 0.12);
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
  pointer-events: none;
}
.way:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.way:focus-visible::after {
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .way:hover {
    transform: translateY(-2px);
  }
  .way:hover::after {
    opacity: 1;
  }
}
.way:active {
  transform: scale(0.99);
}
.way .way-no {
  color: var(--grey);
  font-size: 0.9rem;
}
.way b {
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.6rem);
  font-weight: 800;
  font-stretch: 112%;
  color: var(--navy);
  line-height: 1.15;
}
.way span:not(.way-no) {
  color: #3a4148;
}
.way em {
  font-style: normal;
  font-weight: 650;
  color: var(--blue-dark);
  margin-top: 4px;
}
@media (max-width: 760px) {
  .ways {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .way,
  .way:hover,
  .way:active {
    transform: none;
  }
}
.chapter-body > .sub-head {
  margin-top: clamp(56px, 7vw, 88px);
}
.chapter-body > .sub-head:first-child {
  margin-top: 0;
}
.chapter-body > .sub-head + .wrap {
  margin-top: 24px;
}
.way2 {
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--rule);
}
.way2 .lead {
  margin-top: 18px;
}

/* Breite Bildschirme: Text links, Schrank rechts */
@media (min-width: 1180px) {
  .sc-pin {
    grid-template-rows: minmax(0, 1fr);
  }
  .sc-head {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    display: grid;
    gap: 18px;
    max-width: 560px;
    margin: 0 0 0 auto;
    padding: 0 clamp(16px, 3vw, 48px) 8vh max(20px, env(safe-area-inset-left, 0px));
  }
  .sc-head p {
    font-size: 1.12rem;
    max-width: 40ch;
  }
  .sc-stage {
    grid-column: 2;
    grid-row: 1;
    align-content: center;
    padding-top: 2vh;
  }
  .sc-floor {
    left: -100vw;
    right: 0;
  }
}
.chapter-head {
  background-size: max(160%, 1500px) auto;
}
@media (min-width: 1180px) {
  .sc-stage {
    justify-items: center;
  }
  .sc-head {
    position: relative;
    z-index: 3;
  }
  .sc-hint {
    left: max(20px, env(safe-area-inset-left, 0px));
    right: auto;
    width: 46%;
    text-align: left;
    padding-left: clamp(16px, 4vw, 64px);
  }
}

.sc-unit {
  transform: none !important;
}

/* ==========================================================================
   Vierer-Schrank: zwei Doppeltür-Schränke (je 1200 von 2400, Höhe 1800)
   ========================================================================== */
.sc-unit {
  width: calc(var(--h) * 1.3333);
}
.showcase .cab-a,
.showcase .cab-b {
  width: 50%;
}
.showcase .door.half-l {
  width: 49.67%;
}
.showcase .door.half-r {
  width: 50.33%;
}
.showcase .half-l .tag--span {
  left: 28%;
  width: 145%;
}
.showcase .half-r .tag--span {
  left: -73%;
  width: 145%;
}
.showcase .tag--span {
  top: 9%;
  font-size: max(9px, calc(var(--h) * 0.03));
}
.showcase .tag--span .tag-text {
  letter-spacing: 0.26em;
}
.sc-cols {
  grid-template-columns: 50% 50%;
}
.showcase .peek {
  width: calc(var(--h) * 0.42);
}
.chapter-head {
  background-image: url("img/s-innen.jpg");
}

/* Ganzes Innenleben klickbar, sobald die Türen offen sind */
.showcase .cab-inner {
  display: block;
  cursor: pointer;
  pointer-events: none;
  z-index: 1;
  transition: filter 150ms ease;
}
.showcase .cabinet.is-peek .cab-inner,
.showcase.is-revealed .cab-inner {
  pointer-events: auto;
}
@media (hover: hover) and (pointer: fine) {
  .showcase .cabinet.is-peek .cab-inner:hover,
  .showcase.is-revealed .cab-inner:hover {
    filter: brightness(1.06);
    box-shadow: inset 0 0 0 3px rgba(0, 122, 173, 0.85);
  }
}
.showcase .peek {
  z-index: 2;
}
.showcase .cab-inner:hover ~ .peek em,
.showcase .cab-inner:hover + .peek em {
  text-decoration: underline;
}

/* Kürzere Scrollstrecke: Türen öffnen früher */
@media (min-width: 1180px) {
  .sc-pin {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.45fr);
  }
  .sc-head h1 {
    font-size: clamp(1.9rem, 0.7rem + 2.1vw, 3rem);
  }
}
@media (max-width: 1179px) {
  .sc-head h1 {
    hyphens: auto;
  }
}

/* Eine gemeinsame Kamera für die ganze Schrankreihe: alle Türen fluchten auf denselben Punkt */
.sc-row {
  perspective: calc(var(--h) * 3.4);
  transform-style: preserve-3d;
}
.showcase .cabinet {
  perspective: none;
  transform-style: preserve-3d;
}
.showcase .door {
  backface-visibility: visible;
}
.showcase .door .face,
.showcase .door .back {
  outline: 1px solid transparent;
}
/* Türblatt-Kante, damit offene Türen nicht papierdünn wirken */
.showcase .door .back {
  box-shadow: inset 0 0 0 2px rgba(120, 128, 134, 0.55);
}
/* Kurze Scrollstrecke: Türen reagieren sofort */
/* Nach dem Öffnen geht die Seite sofort weiter: nur 170 px Haltestrecke */
.sc-track {
  height: calc(100svh - var(--hdr) + 170px);
}
@media (max-width: 640px) {
  .sc-track {
    height: calc(100svh - var(--hdr) + 170px);
  }
}

/* ==========================================================================
   Räumliche Türen: Türblattstärke, Kante und hervorstehende Bauteile
   ========================================================================== */
.showcase .door {
  --t: calc(var(--h) * 0.02);
}
.showcase .door .face {
  overflow: visible;
  transform-style: preserve-3d;
}
.showcase .door .back {
  transform: translateZ(calc(var(--t) * -1)) rotateY(180deg);
}
.showcase .door .edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--t);
  backface-visibility: visible;
  background: linear-gradient(90deg, #c9ced1 0%, #e4e7e9 35%, #b9bfc3 70%, #5d656b 100%);
}
.showcase .door.hinge-l .edge {
  left: 100%;
  transform-origin: 0 50%;
  transform: rotateY(90deg);
}
.showcase .door.hinge-r .edge {
  right: 100%;
  transform-origin: 100% 50%;
  transform: rotateY(-90deg);
}

/* Feldschild komplett auf der linken Tür, wo auf dem Foto die Kennzeichnung sitzt */
.showcase .tag--door {
  top: 7.5%;
  left: 50%;
  transform: translate3d(-50%, 0, 1px);
  max-width: 92%;
  font-size: max(7px, calc(var(--h) * 0.025));
  padding: 0.6em 1.55em 0.56em;
}
.showcase .tag--door::before {
  left: 0.5em;
}
.showcase .tag--door::after {
  right: 0.5em;
}
.showcase .tag--door .tag-text {
  letter-spacing: 0.02em;
  font-stretch: 94%;
}

/* Bauteile: Ausschnitt aus dem Türfoto, um ihre Bautiefe nach vorn versetzt */
.showcase .part {
  position: absolute;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  left: calc(var(--x) / var(--W) * 100%);
  top: calc(var(--y) / 1800 * 100%);
  width: calc(var(--w) / var(--W) * 100%);
  height: calc(var(--hh) / 1800 * 100%);
  background-repeat: no-repeat;
  background-size: calc(var(--W) / var(--w) * 100%) calc(1800 / var(--hh) * 100%);
  transform: translateZ(calc(var(--h) * var(--d)));
  --c: #b9c0c4;
}
.showcase .part i {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}
.showcase .part i:nth-child(1) {
  transform: translateZ(calc(var(--h) * var(--d) * -0.17));
}
.showcase .part i:nth-child(2) {
  transform: translateZ(calc(var(--h) * var(--d) * -0.34));
}
.showcase .part i:nth-child(3) {
  transform: translateZ(calc(var(--h) * var(--d) * -0.51));
}
.showcase .part i:nth-child(4) {
  transform: translateZ(calc(var(--h) * var(--d) * -0.68));
}
.showcase .part i:nth-child(5) {
  transform: translateZ(calc(var(--h) * var(--d) * -0.84));
}
.showcase .part i:nth-child(6) {
  transform: translateZ(calc(var(--h) * var(--d) * -0.95));
}
.showcase .p-hmi {
  --c: #7d8790;
  border-radius: 1px;
}
.showcase .p-key {
  --c: #2b2f33;
  border-radius: 3px;
}
.showcase .p-estop {
  --c: #b3262a;
  border-radius: 50%;
}
.showcase .p-handle {
  --c: #cfd4d7;
  border-radius: 3px;
}
.showcase .p-switch {
  --c: #2a2f35;
  border-radius: 3px;
}

/* Bauteile als freigestellte Ausschnitte mit Silhouetten-Extrusion */
.showcase .part {
  background: var(--img) center / 100% 100% no-repeat !important;
  background-position: center !important;
  border-radius: 0 !important;
}
.showcase .part i {
  background: var(--c) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  -webkit-mask: var(--img) center / 100% 100% no-repeat;
  mask: var(--img) center / 100% 100% no-repeat;
  filter: brightness(0.82);
}
.showcase .part i:last-child {
  filter: brightness(0.62);
}
.showcase .p-estop i:nth-child(n + 5) {
  background: #c99a12 !important;
}
/* Platz für den Schwenkbereich der Außentüren (je ca. 9 % der Schrankbreite) */
.sc-unit {
  --h: min(calc((100cqh - var(--colh) - 4px) / 1.05), calc((100cqw - 24px) / 1.75));
}
@media (min-width: 1180px) {
  .sc-unit {
    --h: min(calc((100cqh - var(--colh) - 24px) / 1.05), calc((100cqw - 24px) / 1.75));
  }
  .sc-stage {
    padding-left: clamp(24px, 3vw, 80px);
    padding-right: clamp(24px, 3vw, 80px);
  }
}
@media (max-width: 640px) {
  .sc-unit {
    --h: min(calc((100cqh - var(--colh) - 4px) / 1.05), calc((100cqw - 8px) / 1.72));
  }
}
.showcase .peek b {
  font-stretch: 100%;
}
.sub-head .lead {
  margin-top: 18px;
}
.sub-head .split {
  margin-top: 32px;
}

/* Referenzen: jedes Bild vollständig in seinem eigenen Format */
.slider {
  grid-auto-columns: max-content;
  gap: 18px;
  align-items: start;
}
.slide {
  width: max-content;
  max-width: calc(100vw - 48px);
}
.slide-img {
  aspect-ratio: auto;
  height: clamp(260px, 42vw, 460px);
  background: none;
  border-radius: 3px;
  overflow: hidden;
}
.slide-img img {
  max-width: calc(100vw - 48px);
  object-fit: cover;
}
.slide figcaption {
  max-width: 34ch;
}
.slide-img img {
  height: clamp(260px, 42vw, 460px);
  width: auto;
}
@media (max-width: 640px) {
  .slide-img,
  .slide-img img {
    height: 240px;
  }
}

/* ---------- Überarbeitung nach Design- und Barrierefreiheitsprüfung ---------- */
.skip-link {
  position: absolute;
  left: max(12px, env(safe-area-inset-left, 0px));
  top: -100px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 3px;
  font-weight: 650;
  text-decoration: none;
}
.skip-link:focus {
  top: calc(env(safe-area-inset-top, 0px) + 12px);
}
span#inhalt {
  display: block;
  height: 0;
  outline: none;
}

.sc-col:focus-visible {
  outline: 2px solid #8fcbeb;
  outline-offset: -2px;
}
.hint-touch {
  display: none;
}
@media (hover: none) {
  .hint-mouse {
    display: none;
  }
  .hint-touch {
    display: inline;
  }
}

.notice--err {
  border-left-color: #b3261e;
}

.contact-card h3 {
  font-size: 1.25rem;
}
.quote-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.quote-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.45;
  color: var(--on-navy);
}
.quote-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(143, 203, 235, 0.2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%238fcbeb' stroke-width='2'/%3E%3C/svg%3E")
    center/11px no-repeat;
}
.quote-note {
  color: var(--on-navy-soft);
  font-size: 0.95rem;
}
.quote-note a {
  color: #fff;
}
.quote-phone {
  display: grid;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid rgba(169, 196, 216, 0.3);
}
.quote-phone span {
  color: var(--on-navy-soft);
  font-size: 0.9rem;
}
.quote-phone a {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 750;
  font-stretch: 112%;
  text-decoration: none;
}
.quote-phone a:hover {
  text-decoration: underline;
}
@media (max-width: 880px) {
  .contact .contact-card {
    order: -1;
  }
}
.contact-card h3 {
  text-wrap: balance;
}

/* AGB */
.agb .wrap {
  max-width: 860px;
}
.agb-meta {
  color: var(--grey);
}
.agb ol {
  padding-left: 1.4em;
  display: grid;
  gap: 10px;
  margin: 0;
}
.agb ol li {
  padding-left: 0.2em;
  line-height: 1.6;
}
.agb h2 {
  color: var(--navy);
}
@media print {
  .site-header,
  .site-footer,
  .agb-meta a {
    display: none !important;
  }
  body {
    background: #fff;
    font-size: 10pt;
  }
  .legal {
    padding-block: 0;
  }
  .agb h2 {
    break-after: avoid;
  }
  .agb ol li {
    break-inside: avoid;
  }
}
@media print {
  .no-print {
    display: none !important;
  }
  .agb h1 {
    font-size: 20pt;
  }
  .agb h2 {
    font-size: 12pt;
    margin-top: 12px;
  }
  .agb ol {
    gap: 4px;
  }
  .agb ol li,
  .agb p {
    line-height: 1.45;
  }
  .legal .wrap > * + * {
    margin-top: 8px;
  }
}

/* Smartphone: Feldschilder passen sich der Türbreite an */
@media (max-width: 640px) {
  .showcase .tag--door {
    white-space: nowrap;
    padding: 0.55em 1.25em 0.5em;
    top: 6%;
  }
  .showcase .tag--door::before {
    left: 0.42em;
  }
  .showcase .tag--door::after {
    right: 0.42em;
  }
  .showcase .tag--door::before,
  .showcase .tag--door::after {
    width: 0.42em;
    height: 0.42em;
    margin-top: -0.21em;
  }
  .showcase .tag--door .tag-text {
    white-space: nowrap;
    font-stretch: 75%;
    letter-spacing: 0;
    font-weight: 650;
  }
}

/* Mobilbrowser dürfen kleine Schrift nicht automatisch vergrößern (Font-Boosting / Text-Autosizing) */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (max-width: 640px) {
  .showcase .tag--door {
    font-size: calc(var(--h) * 0.027);
    max-width: 84%;
    overflow: hidden;
  }
  .showcase .tag--door .tag-text {
    overflow: hidden;
    text-overflow: clip;
  }
}

/* Türschilder als skalierbare Grafik: unabhängig von Schrift-Einstellungen des Geräts */
.showcase .tag--svg {
  --u: calc(var(--h) * 0.027);
  font-size: var(--u) !important;
  max-width: none !important;
  overflow: visible !important;
  padding: calc(var(--u) * 0.5) calc(var(--u) * 1.6) !important;
  top: 7% !important;
}
.showcase .tag--svg::before,
.showcase .tag--svg::after {
  width: calc(var(--u) * 0.45) !important;
  height: calc(var(--u) * 0.45) !important;
  margin-top: calc(var(--u) * -0.225) !important;
}
.showcase .tag--svg::before {
  left: calc(var(--u) * 0.55) !important;
}
.showcase .tag--svg::after {
  right: calc(var(--u) * 0.55) !important;
}
.tag-svg {
  display: block;
  height: auto;
  overflow: visible;
}
.tag--kurz .tag-svg {
  width: calc(var(--h) * 0.09);
}
.tag-svg text {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 620;
}
.tag-svg .hl {
  fill: rgba(255, 255, 255, 0.8);
}
.tag-svg .tx {
  fill: #24313a;
}
@media (max-width: 640px) {
  .showcase .tag--svg {
    --u: calc(var(--h) * 0.026);
    padding: calc(var(--u) * 0.45) calc(var(--u) * 1.25) !important;
    top: 6% !important;
  }
  .showcase .tag--svg::before {
    left: calc(var(--u) * 0.4) !important;
  }
  .showcase .tag--svg::after {
    right: calc(var(--u) * 0.4) !important;
  }
}
.tag--lang .tag-svg {
  width: calc(var(--h) * 0.185);
}
@media (max-width: 640px) {
  .tag--lang .tag-svg {
    width: calc(var(--h) * 0.195);
  }
}

/* Mitteltüren: stehen geöffnet exakt senkrecht in der Fuge, dünnes Türblatt,
   aufgesetzte Bauteile blenden beim Öffnen aus, damit nichts in den Nachbarschrank ragt */
.sc-row {
  perspective-origin: 50% 46%;
}
.showcase .door.mid {
  --t: calc(var(--h) * 0.006);
}
.showcase .door.mid .part {
  opacity: calc(1 - var(--open, 0) * 2.5);
}

/* Lange Fachwörter dürfen umbrechen, statt aus Feldern oder dem Bildschirm zu laufen */
h1,
h2,
h3,
h4,
summary,
.sector-list b,
.way b,
.sc-col b,
dt,
th {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
p,
li,
dd,
td,
label,
figcaption,
.peek b {
  overflow-wrap: break-word;
}
@media (max-width: 640px) {
  p,
  li,
  dd,
  td,
  a,
  span,
  b,
  em {
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* Schrift im Schrankbild an die Schrankgröße binden, nicht an die Systemschrift */
.showcase .peek {
  font-size: calc(clamp(0.82rem, calc(var(--h) * 0.022), 1.05rem) / var(--tz, 1));
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .sc-col b {
    font-size: calc(0.74rem / var(--tz, 1));
  }
}
/* Notfall-Umbruch, falls ein Gerät keine deutsche Silbentrennung kennt */
h1,
h2,
h3,
h4,
summary,
p,
li,
dd,
dt,
td,
th,
label,
figcaption,
.sector-list b,
.way b,
.sc-col b {
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .showcase .peek {
    width: calc(var(--h) * 0.47);
    padding-left: 0.7em;
    padding-right: 0.6em;
  }
}
.chapter-head .wrap {
  grid-template-columns: minmax(0, 1fr);
}
.chapter-head .tag {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .showcase .peek {
    font-size: calc(min(0.74rem, var(--h) * 0.041) / var(--tz, 1));
  }
}
/* Vergleichstabelle: nur an Silben trennen, die Tabelle darf seitlich wischen */
td,
th {
  overflow-wrap: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}
/* Fuge zwischen den beiden Schränken, solange die Mitteltüren ausgeblendet sind */
.showcase .cab-b::after {
  opacity: 0;
  transition: opacity 150ms ease;
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: linear-gradient(90deg, #6d757b, #c9ced1);
  z-index: 2;
  pointer-events: none;
}
.showcase.is-revealed .cab-b::after {
  opacity: 1;
}
/* Türbreiten spiegelbildlich wie auf dem Foto: beide Außentüren gleich breit, damit sie geöffnet gleich hoch wirken */
.showcase .cab-b .door.half-l {
  width: 50.33%;
}
.showcase .cab-b .door.half-r {
  width: 49.67%;
}

/* Hervorgehobener Hinweis in Rechtstexten (Widerspruchsrecht) */
.legal-box {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--blue-dark);
  background: var(--white);
  padding: 18px 22px;
  border-radius: 3px;
}
.legal-box h2 {
  margin-top: 0;
}
.legal-date {
  color: var(--grey);
}

.slide-img picture {
  display: contents;
}

.menu-panel[hidden] {
  display: none;
}
.menu-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
/* 3D-Schrank in eigener Ebene halten, damit er nie über Kopfzeile und Menü gezeichnet wird */
.showcase {
  isolation: isolate;
  z-index: 0;
}

/* Sprachumschalter mit Flaggen */
.site-header .brand {
  margin-right: auto;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}
.lang-flag {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.lang-flag svg {
  display: block;
  width: 26px;
  height: 16px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  border-radius: 2px;
  opacity: 0.7;
  transition: opacity 150ms ease, transform 160ms var(--ease-out);
}
.lang-flag[aria-current="true"] svg {
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.18),
    0 0 0 3px var(--white),
    0 0 0 5px var(--blue-dark);
}
@media (hover: hover) and (pointer: fine) {
  .lang-flag:hover svg {
    opacity: 1;
  }
}
.lang-flag:active svg {
  transform: scale(0.94);
}
.lang-flag:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}
@media (max-width: 1040px) {
  .lang-switch {
    margin-left: 0;
    gap: 2px;
  }
  .site-header .wrap {
    gap: 10px;
  }
}

/* ==========================================================================
   Überarbeitung Oktober 2026: technischer Auftritt
   Raster wie auf dem Zeichenblatt, Kennzeichnungen in Monospace (BMK-Stil),
   Klemmen statt Kreise im Ablauf, Signal-Gelb als einziger Zusatzakzent.
   ========================================================================== */
:root {
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --deep: #172833; /* Hintergrund Hero, Kennzahlen, Über uns */
  --cyan: #8fd3f4; /* Akzent auf dunklem Grund */
  --signal: #f5b800; /* Warnschild-Gelb, nur für Signale */
  --grid-light: rgba(11, 54, 84, 0.05);
  --grid-dark: rgba(143, 211, 244, 0.06);
}

/* Zeichenblatt-Raster auf dem hellen Grund */
body {
  background-color: var(--plate);
  background-image:
    linear-gradient(var(--grid-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-light) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Kopfzeile: leicht transparent mit Unschärfe */
.site-header {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  transition: box-shadow 200ms ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(6, 20, 31, 0.12);
}
.nav a {
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.nav a:not(.btn):hover {
  text-decoration: none;
}
.nav a:not(.btn):hover::after {
  transform: scaleX(1);
}

/* Kennzeichnung über Überschriften, wie ein Betriebsmittelkennzeichen */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  max-width: none;
  font: 600 0.76rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.eyebrow span {
  padding: 5px 7px 4px;
  border: 1px solid currentColor;
  border-radius: 2px;
  letter-spacing: 0.04em;
}
.eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow--dark {
  color: var(--cyan);
}
.chapter-head .eyebrow,
.about-text .eyebrow {
  margin: 0;
}
.ref-head .eyebrow {
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  border-radius: 2px;
}
.btn--arrow::after {
  content: "\2192";
  font-weight: 400;
  transition: transform 200ms var(--ease-out);
}
.btn--arrow:hover::after {
  transform: translateX(4px);
}
.btn--line {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--line:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

/* Startbild */
.sc-head h1 em {
  font-style: normal;
  color: var(--cyan);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-spec {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  border-top: 1px solid rgba(143, 211, 244, 0.18);
  font: 500 0.78rem/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fa9bc;
}
.hero-spec li + li::before {
  content: "/";
  margin: 0 12px;
  color: rgba(143, 211, 244, 0.45);
}
.sc-pin {
  background-image:
    radial-gradient(ellipse 52% 60% at 50% 46%, rgba(165, 208, 236, 0.22) 0%, rgba(150, 196, 228, 0.07) 48%, transparent 76%),
    linear-gradient(var(--grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px),
    linear-gradient(180deg, #13222c 0%, #1b2f3c 55%, #24394a 100%);
  background-size: auto, 48px 48px, 48px 48px, auto;
}
@media (max-width: 1179px) {
  .sc-head .eyebrow,
  .hero-spec {
    display: none;
  }
  .hero-cta {
    flex-basis: 100%;
    margin-top: 4px;
  }
  .hero-cta .btn {
    padding: 11px 16px;
    font-size: 0.92rem;
  }
}
@media (max-width: 760px) {
  .hero-cta .btn--line {
    display: none;
  }
}

/* Kennzahlen direkt unter dem Startbild */
.kpi {
  position: relative;
  background: var(--deep);
  color: #e8f1f7;
  border-top: 1px solid rgba(143, 211, 244, 0.16);
}
.kpi-grid {
  list-style: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kpi-grid li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 10px;
  row-gap: 8px;
  padding: clamp(28px, 4vw, 44px) clamp(16px, 2.4vw, 32px);
  border-left: 1px solid rgba(143, 211, 244, 0.14);
}
.kpi-grid li:last-child {
  border-right: 1px solid rgba(143, 211, 244, 0.14);
}
.kpi-val {
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.kpi-val small {
  font-size: 0.4em;
  font-weight: 600;
  margin-right: 4px;
  color: var(--cyan);
  letter-spacing: 0;
}
.kpi-unit {
  font: 600 0.74rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.kpi-grid p {
  grid-column: 1 / -1;
  color: #a9c1d3;
  font-size: 0.95rem;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }
  .kpi-grid li {
    border-left: 0;
    border-bottom: 1px solid rgba(143, 211, 244, 0.14);
    padding-inline: var(--gutter-l);
  }
  .kpi-grid li:nth-child(odd) {
    border-right: 1px solid rgba(143, 211, 244, 0.14);
  }
  .kpi-grid li:last-child {
    border-right: 0;
  }
  .kpi-grid li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}
@media (max-width: 420px) {
  .kpi-grid li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Kapitelköpfe: Raster über dem Foto */
.chapter-head::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 211, 244, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 211, 244, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask: linear-gradient(90deg, #000 0%, transparent 70%);
  mask: linear-gradient(90deg, #000 0%, transparent 70%);
}
.chapter-head .wrap {
  z-index: 1;
}

/* Zwei Wege */
.way {
  border-top-width: 3px;
  transition:
    transform 200ms var(--ease-out),
    border-color 200ms ease;
}
.way .way-no {
  font: 600 0.74rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.way em::after {
  content: " \2192";
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .way:hover {
    border-top-color: var(--blue);
  }
  .way:hover em::after {
    transform: translateX(4px);
  }
}

/* Unterüberschriften mit Kennlinie */
.sub-title {
  position: relative;
  padding-left: 22px;
}
.sub-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  background: var(--blue);
}

/* Ablauf: Klemmen statt Kreise, Signal läuft über die Leitung */
.flow li::before,
.digi-steps li::before {
  border-radius: 3px;
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-stretch: 100%;
  content: counter(flow, decimal-leading-zero);
}
.digi-steps li::before {
  content: counter(digi, decimal-leading-zero);
}
.flow li {
  z-index: 1;
}
.flow::before {
  height: 2px;
  top: 21px;
  background: var(--navy);
  opacity: 0.35;
}
.flow::after {
  content: "";
  position: absolute;
  left: 22px;
  right: calc((100% - 72px) / 4 - 22px);
  top: 20px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, transparent 42%, var(--signal) 50%, transparent 58%, transparent 100%);
  background-size: 300% 100%;
  animation: me-signal 3.6s linear infinite;
}
@keyframes me-signal {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0% 0;
  }
}
@media (max-width: 860px) {
  .flow::after {
    display: none;
  }
  .flow::before {
    width: 2px;
  }
}

/* Leistungskarten im Service */
.extras article {
  border-top: 3px solid var(--navy);
  background: var(--white);
  padding: 24px;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* Branchen als Kacheln mit Symbol */
.sector-grid {
  list-style: none;
  margin: clamp(32px, 5vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}
.sector-grid li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms ease,
    box-shadow 220ms ease;
}
.sector-grid svg {
  width: 44px;
  height: 44px;
  padding: 9px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--blue-dark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  border: 1px solid var(--rule);
  border-radius: 3px;
  transition:
    background-color 220ms ease,
    stroke 220ms ease,
    border-color 220ms ease;
}
.sector-grid b {
  font-size: 1.2rem;
  font-weight: 800;
  font-stretch: 112%;
  color: var(--navy);
  line-height: 1.15;
}
.sector-grid span {
  color: var(--grey);
  font-size: 0.97rem;
  line-height: 1.5;
}
@media (hover: hover) and (pointer: fine) {
  .sector-grid li:hover {
    transform: translateY(-3px);
    border-color: var(--blue);
    box-shadow: 0 16px 34px rgba(11, 54, 84, 0.12);
  }
  .sector-grid li:hover svg {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    stroke: #fff;
  }
}
@media (max-width: 980px) {
  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .sector-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Referenzen */
.slide-img img {
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .slide:hover .slide-img img {
    transform: scale(1.03);
  }
}
.slide figcaption b::before {
  content: "\25A0";
  color: var(--blue);
  font-size: 0.6em;
  margin-right: 8px;
  vertical-align: 0.25em;
}

/* Über uns auf dunklem Grund */
.about-section {
  background-color: var(--deep);
  background-image:
    linear-gradient(var(--grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  color: #e8f1f7;
}
.about-section h2 {
  color: #fff;
}
.about-section .about-text p:not(.eyebrow) {
  color: #b9cfde;
}
.about-section .years {
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.about-section .years span {
  background: linear-gradient(180deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-section .years small {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.about-section .principles li {
  border-top-color: rgba(143, 211, 244, 0.18);
}
.about-section .principles b {
  color: #fff;
}
.about-section .principles span {
  color: #a9c1d3;
}

/* FAQ */
.faq {
  border-top-color: var(--navy);
}
.faq summary {
  transition: color 150ms ease;
}

/* Kontaktkarte mit Raster */
.contact-card {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(143, 211, 244, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 211, 244, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  border-top: 3px solid var(--signal);
}

/* Fußzeile */
.site-footer {
  background: var(--deep);
  border-top: 1px solid rgba(143, 211, 244, 0.16);
}

/* Einblenden beim Scrollen (nur mit Skript, nur ohne reduzierte Bewegung) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 700ms var(--ease-out),
      transform 700ms var(--ease-out);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flow::after {
    animation: none;
    display: none;
  }
}
.eyebrow,
.eyebrow span {
  overflow-wrap: normal;
  white-space: nowrap;
  hyphens: none;
  -webkit-hyphens: none;
}
.kpi-grid li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: start;
  gap: 10px 10px;
}
.kpi-grid p {
  flex-basis: 100%;
}
.kpi-unit {
  overflow-wrap: normal;
  hyphens: none;
}
.about-section .about-text .eyebrow {
  color: var(--cyan);
}

/* ==========================================================================
   Fotos aus der Werkstatt
   ========================================================================== */
.col-side {
  display: grid;
  gap: 20px;
  align-content: start;
}
.photo {
  margin: 0;
  display: grid;
  gap: 10px;
}
.photo img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--rule);
}
.photo figcaption {
  display: grid;
  gap: 2px;
  font-size: 0.95rem;
}
.photo figcaption b {
  font-weight: 700;
  color: var(--navy);
}
.photo figcaption span {
  color: var(--grey);
}

/* Bilder in den Service-Karten */
.extras article {
  padding-top: 0;
  overflow: hidden;
}
.extra-img {
  width: calc(100% + 48px);
  max-width: none;
  margin: 0 -24px 6px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 40%;
  border-bottom: 1px solid var(--rule);
}

/* Projekt im Fokus: Türen zu / Türen auf */
.feature {
  margin: 0 0 clamp(36px, 5vw, 56px);
  display: grid;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  background: var(--white);
}
.feature-stage {
  position: relative;
  aspect-ratio: 1600 / 739;
  background: #e9ecee;
}
.feature-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 600ms var(--ease-out);
}
.feature-open {
  opacity: 0;
}
.feature.is-open .feature-open {
  opacity: 1;
}
.feature-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 9px 5px;
  font: 600 0.78rem/1 var(--mono);
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(11, 21, 28, 0.82);
  border-radius: 2px;
}
.feature-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 18px 22px;
  border-top: 1px solid var(--rule);
}
.feature-text {
  display: grid;
  gap: 4px;
  max-width: 70ch;
}
.feature-text b {
  font-size: 1.15rem;
  font-weight: 800;
  font-stretch: 112%;
  color: var(--navy);
}
.feature-text span {
  color: var(--grey);
}
.feature-switch {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: var(--plate);
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.feature-switch button {
  font: 600 0.85rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.feature-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}
@media (max-width: 640px) {
  .feature-stage {
    aspect-ratio: 4 / 3;
  }
  .feature-stage img {
    object-position: 50% 50%;
  }
  .feature-switch {
    width: 100%;
  }
  .feature-switch button {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .feature-stage img {
    transition: none;
  }
}
.extra-img {
  height: auto;
}
@media (max-width: 640px) {
  .feature-tag {
    display: none;
  }
}

/* Referenzen: Raster aus Tür-Karten */
.ref-head {
  display: grid;
  gap: 10px;
}
.ref-lead {
  margin-top: 0;
}
.door-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin-bottom: clamp(48px, 6vw, 72px);
}
.feature--card {
  margin: 0;
  grid-template-rows: auto 1fr;
}
.feature--card .feature-stage {
  aspect-ratio: 1 / 1;
}
.feature--card .feature-cap {
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 18px;
}
.feature--card .feature-text b {
  font-size: 1.02rem;
  line-height: 1.25;
}
.feature--card .feature-text span {
  font-size: 0.93rem;
  line-height: 1.45;
}
.feature--card .feature-switch {
  align-self: flex-start;
}
.feature--card .feature-switch button {
  min-height: 40px;
  padding: 0 14px;
}
.ref-head--sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}
@media (max-width: 1000px) {
  .door-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .door-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature--card .feature-switch {
    width: auto;
  }
}
.feature-switch button {
  white-space: nowrap;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
}

/* Logo statt Schriftzug in der Partner-Spalte */
.split-logo {
  line-height: 0;
}
.split-logo img {
  height: 56px;
  width: auto;
}

/* Breites Partnerlogo optisch gleich groß wie das eigene Logo */
.split-logo--wide {
  display: flex;
  align-items: center;
  min-height: 56px;
}
.split-logo--wide img {
  height: 40px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Cookie-Auswahl: blockiert die Seite, bis eine Auswahl getroffen ist */
.consent-layer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(6, 20, 31, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.consent-layer[hidden] {
  display: none;
}
.consent-box {
  width: min(640px, 100%);
  max-height: calc(100svh - 32px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--white);
  color: var(--ink);
  border-top: 3px solid var(--blue);
  border-radius: 3px;
  box-shadow: 0 24px 60px rgba(6, 20, 31, 0.35);
}
.consent-box .eyebrow {
  margin: 0;
}
.consent-box h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  color: var(--navy);
}
.consent-box p {
  color: #3a4148;
  font-size: 0.97rem;
}
.consent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.consent-list li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
}
.consent-list li + li {
  border-top: 1px solid var(--rule);
}
.consent-list b {
  color: var(--navy);
}
.consent-list span {
  color: var(--grey);
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.consent-actions .btn {
  flex: 1 1 200px;
}
html.consent-open {
  overflow: hidden;
}
.link-btn {
  font: inherit;
  color: #fff;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
@media (max-width: 480px) {
  .consent-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}
