/* =========================================================
   WEMATEC GmbH – Stylesheet
   Gestaltung: weissblau media · Schrift: Inter (lokal)
   ========================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-var-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blau: #324c8d; /* Markenblau */
  --blau-tief: #243a70; /* Hover, Text auf Hell */
  --nacht: #17244a; /* dunkle Flächen */
  --nacht-2: #111b39; /* Footer */
  --strahl: #b9cdff; /* Laserlicht auf Dunkel */
  --papier: #f2f4f8; /* kühle Hintergrundfläche */
  --nebel: #e6eaf2;
  --linie: #d5dbe6;
  --text: #1c2333;
  --grau: #525d70;
  --weiss: #fff;
  --fehler: #b3261e;
  --ok: #1f7a4d;

  --f: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 40px);
  --sec: clamp(72px, 9vw, 128px);
  --r: 6px;
  --hdr: 76px;
}

/* ---------- Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 16px);
}
body {
  margin: 0;
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
  font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--blau);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--blau-tief);
}
p {
  margin: 0 0 1em;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.12;
  color: inherit;
  text-wrap: balance;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid #6f95ff;
  outline-offset: 3px;
  border-radius: 2px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--blau);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r);
  text-decoration: none;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
  color: #fff;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- Typografie ---------- */
.h1 {
  font-size: clamp(2.35rem, 5.2vw, 4.4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.022em;
}
.h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--grau);
  max-width: 62ch;
}
.prose {
  max-width: 66ch;
}
.prose p {
  color: var(--grau);
}
.prose strong {
  color: var(--text);
  font-weight: 600;
}
.sec-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 760px;
}
.sec-head p {
  margin: 0;
  color: var(--grau);
  font-size: 1.075rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.btn-primar {
  background: var(--blau);
  color: #fff;
}
.btn-primar:hover {
  background: var(--blau-tief);
  color: #fff;
}
.btn-hell {
  background: #fff;
  color: var(--blau);
}
.btn-hell:hover {
  background: var(--nebel);
  color: var(--blau-tief);
}
.btn-rahmen {
  border-color: currentColor;
  color: var(--blau);
  background: transparent;
}
.btn-rahmen:hover {
  background: var(--blau);
  border-color: var(--blau);
  color: #fff;
}
.auf-dunkel .btn-rahmen {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.auf-dunkel .btn-rahmen:hover {
  background: #fff;
  color: var(--nacht);
  border-color: #fff;
}
.btn-zeile {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.link-pfeil {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}
.link-pfeil svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.link-pfeil:hover svg {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.hdr.gescrollt {
  border-bottom-color: var(--linie);
}
.hdr-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--hdr);
}
.logo {
  flex: none;
  display: block;
}
.logo img {
  height: auto;
  width: 190px;
}
.nav {
  margin-left: auto;
}
.nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav a,
.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.nav a:hover,
.nav-btn:hover {
  color: var(--blau);
  background: var(--papier);
}
.nav [aria-current='page'],
.nav .ist-aktiv > .nav-btn {
  color: var(--blau);
}
.nav > ul > li > a[aria-current='page'] {
  box-shadow: inset 0 -2px 0 var(--blau);
  border-radius: var(--r) var(--r) 0 0;
}
.nav-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}
.nav-btn[aria-expanded='true'] svg {
  transform: rotate(180deg);
}
.has-sub {
  position: relative;
}
.sub {
  position: absolute;
  left: -8px;
  top: calc(100% + 6px);
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 8px;
  box-shadow: 0 18px 40px -18px rgba(23, 36, 74, 0.35);
  padding: 8px;
  list-style: none;
  display: none;
}
.sub.offen {
  display: block;
}
.sub a {
  display: block;
  padding: 10px 12px;
  white-space: normal;
}
.sub a small {
  display: block;
  color: var(--grau);
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.4;
  margin-top: 2px;
}
.sub .sub-alle {
  border-top: 1px solid var(--linie);
  margin-top: 6px;
  padding-top: 6px;
}
.hdr .btn {
  min-height: 44px;
  padding: 10px 18px;
  margin-left: 8px;
}
.burger {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--linie);
  border-radius: var(--r);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition:
    transform 0.2s,
    background 0.2s;
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
}
.burger span::before {
  top: -6px;
}
.burger span::after {
  top: 6px;
}
.burger[aria-expanded='true'] span {
  background: transparent;
}
.burger[aria-expanded='true'] span::before {
  transform: translateY(6px) rotate(45deg);
}
.burger[aria-expanded='true'] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1080px) {
  .burger {
    display: flex;
  }
  .hdr .btn-kopf {
    display: none;
  }
  .nav {
    position: fixed;
    inset: var(--hdr) 0 0 0;
    background: #fff;
    overflow: auto;
    padding: 16px var(--pad) 40px;
    display: none;
    margin: 0;
    border-top: 1px solid var(--linie);
  }
  .nav.offen {
    display: block;
  }
  .nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav > ul > li {
    border-bottom: 1px solid var(--linie);
  }
  .nav a,
  .nav-btn {
    padding: 16px 4px;
    font-size: 1.08rem;
    width: 100%;
    justify-content: space-between;
  }
  .nav [aria-current='page'] {
    box-shadow: none;
  }
  .sub {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 12px 12px;
    min-width: 0;
  }
  .sub a {
    padding: 10px 4px;
    font-size: 1rem;
  }
  .nav-cta {
    display: block;
    border: 0 !important;
    padding-top: 20px;
  }
  .nav-cta .btn {
    display: flex;
    width: 100%;
    color: #fff;
  }
}
@media (min-width: 1081px) {
  .nav-cta {
    display: none;
  }
  .hdr {
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}

/* ---------- Maßstab (Signatur) ---------- */
.massstab {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 80px)
      bottom left/100% 14px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 40px)
      bottom left/100% 9px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px)
      bottom left/100% 5px no-repeat;
  opacity: 0.35;
}

/* ---------- Startseiten-Hero ---------- */
.hero {
  position: relative;
  background: var(--nacht);
  color: #fff;
  overflow: hidden;
  min-height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
}
.hero-bild {
  position: absolute;
  inset: 0;
}
.hero-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  filter: grayscale(1) contrast(1.04) brightness(1.18);
}
.hero-bild::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #2b4689;
  mix-blend-mode: color;
  z-index: 1;
}
.hero-bild::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      180deg,
      rgba(17, 27, 57, 0.1) 0%,
      rgba(17, 27, 57, 0) 32%,
      rgba(17, 27, 57, 0.3) 60%,
      rgba(17, 27, 57, 0.78) 100%
    ),
    linear-gradient(
      90deg,
      rgba(17, 27, 57, 0.66) 0%,
      rgba(17, 27, 57, 0.46) 42%,
      rgba(17, 27, 57, 0) 68%
    );
}
.hero-in {
  position: relative;
  z-index: 4;
  width: 100%;
  margin-top: auto;
  padding-top: calc(var(--sec) * 1.6);
  padding-bottom: clamp(110px, 11vw, 140px);
}
.hero-badge {
  display: inline-block;
  margin: 0 0 22px;
  padding: 7px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.4;
}
.hero h1 {
  max-width: 21ch;
  font-size: clamp(2.2rem, 4.3vw, 3.7rem);
}
.hero .lede {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 24px;
  max-width: 56ch;
}
.hero .lede strong {
  color: #fff;
  font-weight: 600;
}
.hero .massstab {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  color: #fff;
}
.made-in {
  display: block;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--grau);
  margin-top: 28px;
  max-width: 34ch;
}
.made-in i {
  display: block;
  width: 120px;
  height: 6px;
  margin-bottom: 14px;
  background: linear-gradient(
    90deg,
    #000 0 33.33%,
    #d7322a 33.33% 66.66%,
    #fcd04a 66.66%
  );
}

/* Intro-Panel überlappt den Hero */
.intro {
  position: relative;
  z-index: 5;
  margin-top: -72px;
}
.intro-in {
  background: #fff;
  border-radius: 8px;
  box-shadow:
    0 30px 60px -30px rgba(23, 36, 74, 0.35),
    0 0 0 1px rgba(23, 36, 74, 0.06);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
}
.intro-in > div {
  padding: clamp(28px, 4vw, 52px);
}
.intro-in > div:first-child {
  border-right: 1px solid var(--linie);
}
.intro h2 {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.haken {
  list-style: none;
  display: grid;
  gap: 10px;
}
.haken li {
  position: relative;
  padding-left: 30px;
}
.haken li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 14px;
  height: 1.5px;
  background: var(--blau);
}
.haken li::after {
  content: '';
  position: absolute;
  left: 2px;
  top: calc(0.72em - 4px);
  width: 1.5px;
  height: 9.5px;
  background: var(--blau);
}
@media (max-width: 860px) {
  .intro-in {
    grid-template-columns: 1fr;
  }
  .intro-in > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--linie);
  }
}

/* ---------- Unterseiten-Hero ---------- */
.kopf {
  position: relative;
  background: var(--nacht);
  color: #fff;
  overflow: hidden;
}
.kopf-bild {
  position: absolute;
  inset: 0 0 0 38%;
}
.kopf-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
  filter: grayscale(1) contrast(1.04) brightness(1.15);
  opacity: 0.92;
}
.kopf-bild::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #2b4689;
  mix-blend-mode: color;
  z-index: 1;
}
.kopf-bild::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    var(--nacht) 0%,
    rgba(23, 36, 74, 0.55) 28%,
    rgba(23, 36, 74, 0) 75%
  );
}
.kopf-in {
  position: relative;
  z-index: 3;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(70px, 9vw, 120px);
}
.kopf h1 {
  max-width: 18ch;
}
.kopf .lede {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 22px;
}
.kopf .massstab {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  color: #fff;
}
.kopf-klein .kopf-in {
  padding-bottom: clamp(56px, 6vw, 80px);
}
.krumen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 26px;
}
.krumen li + li::before {
  content: '/';
  margin-right: 6px;
  opacity: 0.5;
}
.krumen a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.krumen a:hover {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 700px) {
  .kopf-bild {
    inset: 0;
  }
  .kopf-bild img {
    opacity: 0.5;
  }
  .kopf-bild::after {
    background: linear-gradient(180deg, rgba(23, 36, 74, 0.6), var(--nacht));
  }
}

/* ---------- Sektionen ---------- */
.sec {
  padding: var(--sec) 0;
}
.sec-papier {
  background: var(--papier);
}
.sec-nacht {
  background: var(--nacht);
  color: #fff;
}
.sec-nacht .lede,
.sec-nacht .prose p,
.sec-nacht .sec-head p {
  color: rgba(255, 255, 255, 0.78);
}
.sec:not(.sec-papier):not(.sec-nacht):not(.tempo)
  + .sec:not(.sec-papier):not(.sec-nacht):not(.tempo) {
  padding-top: 0;
}
.sec-papier + .sec-papier {
  padding-top: 0;
}

/* Text + Bild */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.split.dreh > .split-bild {
  order: -1;
}
.split.breit {
  grid-template-columns: 1.35fr 1fr;
}
.split .h2 {
  margin-bottom: 22px;
}
.split-bild {
  margin: 0;
}
.split-bild img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--nebel);
}
.split-bild.hoch img {
  aspect-ratio: 4/4.4;
}
.split-bild figcaption {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 0.84rem;
  color: var(--grau);
  margin-top: 12px;
  line-height: 1.45;
}
.split-bild figcaption::before {
  content: '';
  flex: none;
  width: 18px;
  height: 1px;
  background: var(--blau);
  transform: translateY(-3px);
}
.bild-paar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
/* Freigestellte Produktfotos und Motive, die nicht beschnitten werden dürfen */
.split-bild.frei img {
  aspect-ratio: auto;
  max-height: 560px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  background: none;
  border-radius: 0;
  filter: drop-shadow(0 24px 22px rgba(23, 36, 74, 0.16));
}
.split-bild.ganz img {
  aspect-ratio: auto;
  object-fit: contain;
}
.split-bild.klein {
  max-width: 420px;
  justify-self: center;
  width: 100%;
}
.split-bild.klein img {
  aspect-ratio: auto;
}
.kachel figure.frei {
  background: var(--papier);
}
.kachel figure.frei img,
.kachel figure.ganz img {
  object-fit: contain;
}
.kachel figure.frei img {
  padding: 16px 18px 10px;
  filter: drop-shadow(0 12px 10px rgba(23, 36, 74, 0.14));
}
.block-bild.frei img {
  object-fit: contain;
  background: none;
  filter: drop-shadow(0 22px 20px rgba(23, 36, 74, 0.16));
}
.block-bild.ganz {
  border-radius: 4px;
  overflow: hidden;
}
.block-bild.ganz img {
  object-fit: contain;
  border-radius: 0;
}
.bild-paar img {
  aspect-ratio: 1/1.05;
}
@media (max-width: 900px) {
  .split,
  .split.breit {
    grid-template-columns: 1fr;
  }
  .split.dreh > .split-bild {
    order: 0;
  }
}

/* Leistungsraster (Datenblatt-Optik) */
.raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--linie);
  border: 1px solid var(--linie);
  border-radius: 8px;
  overflow: hidden;
}
.raster > li {
  list-style: none;
  background: #fff;
  padding: clamp(24px, 3vw, 34px);
}
.sec-papier .raster > li {
  background: #fff;
}
.raster h3 {
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.raster h3::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--blau);
  transform: translateY(-2px);
}
.raster p {
  margin: 0;
  color: var(--grau);
  font-size: 0.97rem;
}
.raster.vier {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .raster.vier {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 980px) {
  .raster {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .raster,
  .raster.vier {
    grid-template-columns: 1fr;
  }
}

/* Nutzen */
.nutzen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
}
.nutzen li {
  border-top: 2px solid var(--blau);
  padding-top: 22px;
}
.nutzen h3 {
  margin-bottom: 10px;
}
.nutzen p {
  margin: 0;
  color: var(--grau);
  font-size: 0.97rem;
}
.sec-nacht .nutzen li {
  border-top-color: var(--strahl);
}
.sec-nacht .nutzen p {
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 980px) {
  .nutzen {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .nutzen {
    grid-template-columns: 1fr;
  }
}

/* Anwendungsliste */
.liste {
  list-style: none;
  columns: 2;
  column-gap: 40px;
}
.liste li {
  break-inside: avoid;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--linie);
  position: relative;
}
.liste li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(12px + 0.8em);
  width: 14px;
  height: 1px;
  background: var(--blau);
}
.liste li::after {
  content: '';
  position: absolute;
  left: 0;
  top: calc(12px + 0.8em - 4px);
  width: 1px;
  height: 9px;
  background: var(--blau);
}
.liste.einspaltig {
  columns: 1;
}
.liste.dreispaltig {
  columns: 3;
}
@media (max-width: 860px) {
  .liste.dreispaltig {
    columns: 2;
  }
}
@media (max-width: 620px) {
  .liste,
  .liste.dreispaltig {
    columns: 1;
  }
}

/* Prozess auf dem Maßstab */
.prozess {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 3vw, 36px);
  position: relative;
  padding-top: 46px;
  counter-reset: p;
}
.prozess::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 16px;
  color: var(--blau);
  opacity: 0.45;
  background:
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 80px)
      top left/100% 16px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px)
      top left/100% 7px no-repeat;
}
.prozess::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--blau);
  opacity: 0.6;
}
.prozess li {
  position: relative;
  counter-increment: p;
}
.prozess li::before {
  content: counter(p);
  position: absolute;
  top: -46px;
  left: 0;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blau);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px var(--bg-sec, #fff);
}
.sec-papier .prozess li::before {
  --bg-sec: var(--papier);
}
.prozess h3 {
  margin-bottom: 8px;
}
.prozess p {
  margin: 0;
  color: var(--grau);
  font-size: 0.97rem;
}
@media (max-width: 900px) {
  .prozess {
    grid-template-columns: 1fr;
    padding-top: 0;
    padding-left: 52px;
    gap: 28px;
  }
  .prozess::before {
    display: none;
  }
  .prozess::after {
    left: 16px;
    right: auto;
    top: 6px;
    bottom: 6px;
    width: 1px;
    height: auto;
  }
  .prozess li::before {
    left: -52px;
    top: 0;
    transform: none;
  }
}

/* Hinweis-/Abschluss-Panel */
.panel {
  background: var(--papier);
  border-radius: 8px;
  padding: clamp(28px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.panel .h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 14px;
}
.panel p {
  color: var(--grau);
  margin: 0;
}
.panel .btn-zeile {
  margin: 0;
  justify-content: flex-end;
}
.sec-papier .panel {
  background: #fff;
}
@media (max-width: 820px) {
  .panel {
    grid-template-columns: 1fr;
  }
  .panel .btn-zeile {
    justify-content: flex-start;
  }
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: clamp(30px, 6vw, 96px);
  align-items: start;
}
.faq-liste {
  border-top: 1px solid var(--linie);
}
.faq details {
  border-bottom: 1px solid var(--linie);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-weight: 500;
  font-size: 1.06rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--blau);
}
.faq summary i {
  flex: none;
  position: relative;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--blau);
  border-radius: 50%;
  margin-top: 2px;
}
.faq summary i::before,
.faq summary i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--blau);
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}
.faq summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq details[open] summary i::after {
  transform: translate(-50%, -50%) rotate(0);
}
.faq details p {
  margin: 0 0 22px;
  color: var(--grau);
  max-width: 62ch;
}
@media (max-width: 860px) {
  .faq {
    grid-template-columns: 1fr;
  }
}

/* Geschwindigkeitsvorteil – wiederkehrendes Band */
.tempo {
  background: var(--blau);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tempo .massstab {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  color: #fff;
  transform: scaleY(-1);
  opacity: 0.4;
}
.tempo-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 96px);
  align-items: center;
}
.tempo .h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.tempo p {
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 16px;
}
.tempo .tempo-spez {
  color: #fff;
  font-weight: 500;
  border-left: 2px solid var(--strahl);
  padding-left: 16px;
  margin: 22px 0 24px;
}
.tempo .link-pfeil {
  color: #fff;
}
.tempo .link-pfeil:hover {
  color: var(--strahl);
}
@media (max-width: 860px) {
  .tempo-in {
    grid-template-columns: 1fr;
  }
}

/* Kontakt-Band */
.cta {
  background: var(--nacht);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta .massstab {
  color: #fff;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transform: scaleY(-1);
}
.cta-in {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(30px, 6vw, 96px);
  align-items: center;
  padding-top: clamp(72px, 8vw, 110px);
  padding-bottom: clamp(72px, 8vw, 110px);
}
.cta .h2 {
  margin-bottom: 16px;
}
.cta p {
  color: rgba(255, 255, 255, 0.78);
}
.person {
  display: flex;
  gap: 20px;
  align-items: center;
}
.person img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
  flex: none;
}
.person b {
  display: block;
  font-weight: 600;
}
.person span {
  display: block;
  font-size: 0.93rem;
  opacity: 0.8;
}
.person a {
  color: inherit;
  text-decoration: none;
}
.person a:hover {
  text-decoration: underline;
}
.cta .person {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}
@media (max-width: 860px) {
  .cta-in {
    grid-template-columns: 1fr;
  }
}

/* Kacheln (Startseite & Übersichten) */
.kacheln {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  list-style: none;
}
.kachel {
  position: relative;
  display: flex;
  flex-direction: column;
}
.kachel figure {
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--nebel);
}
.kachel img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.kachel h3 {
  margin-bottom: 8px;
}
.kachel h3 a {
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(var(--blau), var(--blau)) left bottom/0 1.5px
    no-repeat;
  transition: background-size 0.25s;
}
.kachel h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.kachel:hover h3 a {
  background-size: 100% 1.5px;
  color: var(--blau);
}
.kachel:hover img {
  transform: scale(1.03);
}
.kachel p {
  color: var(--grau);
  font-size: 0.96rem;
  margin: 0 0 14px;
}
.kachel .mehr {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blau);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.kachel .mehr svg {
  width: 15px;
  height: 15px;
}
.kachel:focus-within {
  outline: 3px solid #6f95ff;
  outline-offset: 6px;
  border-radius: 4px;
}
.kachel h3 a:focus-visible {
  outline: none;
}
/* Bild, Titel, Text und Link jeder Kachel in gemeinsamen Zeilen ausrichten */
@supports (grid-template-rows: subgrid) {
  .kachel {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .kachel h3 {
    align-self: start;
  }
  .kachel .mehr {
    margin-top: 0;
    align-self: end;
  }
}
@media (max-width: 1000px) {
  .kacheln {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .kacheln {
    grid-template-columns: 1fr;
  }
}

/* Übersichtsblöcke (Anwendungen / Systeme) */
.block {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--linie);
}
.block:first-child {
  border-top: 0;
  padding-top: 0;
}
.block:nth-child(even) .block-bild {
  order: 2;
}
.block-bild img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 4px;
}
.block .h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 16px;
}
.block .beispiele {
  margin: 20px 0 26px;
}
.block .beispiele b {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}
@media (max-width: 900px) {
  .block {
    grid-template-columns: 1fr;
  }
  .block:nth-child(even) .block-bild {
    order: 0;
  }
}

/* Service-Liste Startseite */
.zweig {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.zeilen {
  list-style: none;
  border-top: 1px solid var(--linie);
}
.zeilen li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--linie);
}
.zeilen svg {
  width: 34px;
  height: 34px;
  color: var(--blau);
}
.zeilen h3 {
  margin-bottom: 6px;
}
.zeilen p {
  margin: 0;
  color: var(--grau);
  font-size: 0.97rem;
}
.kontaktkarte {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 0 0 1px var(--linie);
  position: sticky;
  top: calc(var(--hdr) + 24px);
}
.kontaktkarte .person img {
  width: 84px;
  height: 84px;
}
.kontaktkarte h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.kontaktkarte dl {
  margin: 20px 0 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 0.96rem;
}
.kontaktkarte dt {
  color: var(--grau);
}
.kontaktkarte dd {
  margin: 0;
}
@media (max-width: 900px) {
  .zweig {
    grid-template-columns: 1fr;
  }
  .kontaktkarte {
    position: static;
  }
}

/* Kennzahlen + Zeitleiste (Über uns) */
.zahlen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
  margin-top: clamp(40px, 5vw, 64px);
}
.zahlen div {
  padding: 26px 24px 26px 0;
}
.zahlen div + div {
  padding-left: 24px;
  border-left: 1px solid var(--linie);
}
.zahlen b {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--blau);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.zahlen span {
  display: block;
  margin-top: 10px;
  color: var(--grau);
  font-size: 0.92rem;
}
@media (max-width: 760px) {
  .zahlen {
    grid-template-columns: 1fr 1fr;
  }
  .zahlen div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .zahlen div:nth-child(n + 3) {
    border-top: 1px solid var(--linie);
  }
}
.zitat {
  margin: 0;
  padding-left: 28px;
  border-left: 2px solid var(--blau);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 46ch;
}

.zeitleiste {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 24px;
  position: relative;
  padding-top: 40px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.zeitleiste::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 16px;
  color: var(--blau);
  opacity: 0.45;
  min-width: 100%;
  background:
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 80px)
      top left/100% 16px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px)
      top left/100% 7px no-repeat;
}
.zeitleiste li {
  position: relative;
}
.zeitleiste li::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blau);
  transform: translateY(-4px);
  box-shadow: 0 0 0 5px var(--papier);
}
.zeitleiste b {
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--blau);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.zeitleiste p {
  margin: 0;
  color: var(--grau);
  font-size: 0.93rem;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .zeitleiste {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    padding: 0 0 0 34px;
    gap: 22px;
    overflow: visible;
  }
  .zeitleiste::before {
    top: 4px;
    bottom: 4px;
    left: 5px;
    right: auto;
    width: 1px;
    height: auto;
    min-width: 0;
    background: var(--blau);
    opacity: 0.5;
  }
  .zeitleiste li::before {
    top: 0.55em;
    left: -34px;
    transform: none;
  }
}

/* Stellenangebote */
.stellen {
  list-style: none;
  border-top: 1px solid var(--linie);
}
.stellen a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--linie);
  text-decoration: none;
  color: var(--text);
}
.stellen a:hover {
  background: #fff;
}
.stellen b {
  font-weight: 600;
  font-size: 1.04rem;
}
.stellen span {
  grid-column: 1;
  color: var(--grau);
  font-size: 0.94rem;
}
.stellen svg {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 20px;
  height: 20px;
  color: var(--blau);
  transition: transform 0.2s;
}
.stellen a:hover svg {
  transform: translateX(4px);
}
.marken {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 22px;
}
.marken li {
  font-size: 0.86rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--linie);
}

/* Geplante Inhalte (Academy) */
.geplant {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--linie);
  border: 1px solid var(--linie);
  border-radius: 8px;
  overflow: hidden;
}
.geplant li {
  background: #fff;
  padding: 28px;
}
.geplant em {
  display: inline-block;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blau);
  background: var(--nebel);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.geplant h3 {
  margin-bottom: 8px;
}
.geplant p {
  margin: 0;
  color: var(--grau);
  font-size: 0.95rem;
}
@media (max-width: 980px) {
  .geplant {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .geplant {
    grid-template-columns: 1fr;
  }
}

/* Rechtstexte */
.recht {
  max-width: 780px;
}
.recht h2 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 2.2em 0 0.6em;
}
.recht h2:first-child {
  margin-top: 0;
}
.recht h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 1.8em 0 0.5em;
}
.recht p,
.recht li {
  color: var(--grau);
}
.recht ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}
.recht address {
  font-style: normal;
  color: var(--grau);
  margin-bottom: 1em;
}

/* ---------- Footer ---------- */
.ftr {
  background: var(--nacht-2);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}
.ftr a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.ftr a:hover {
  color: #fff;
  text-decoration: underline;
}
.ftr-in {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding: clamp(56px, 7vw, 88px) 0 48px;
}
.ftr-logo img {
  width: 190px;
}
.ftr-logo p {
  margin-top: 20px;
  max-width: 30ch;
  font-size: 0.92rem;
}
.ftr h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.ftr ul {
  list-style: none;
  display: grid;
  gap: 8px;
}
.ftr address {
  font-style: normal;
  line-height: 1.75;
}
.ftr-unten {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 0.86rem;
}
.ftr-unten ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.ftr-unten button {
  background: none;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: inherit;
}
.ftr-unten button:hover {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 900px) {
  .ftr-in {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .ftr-in {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cookie-Hinweis ---------- */
.ck {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 120;
  width: min(390px, calc(100vw - 40px));
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  box-shadow:
    0 24px 60px -20px rgba(17, 27, 57, 0.45),
    0 0 0 1px rgba(17, 27, 57, 0.08);
  padding: 22px 22px 20px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.ck[hidden] {
  display: none;
}
.ck h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.ck p {
  margin: 0 0 16px;
  color: var(--grau);
}
.ck-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ck .btn {
  min-height: 42px;
  padding: 8px 14px;
  font-size: 0.9rem;
}
.ck-link {
  grid-column: 1/-1;
  background: none;
  border: 0;
  color: var(--blau);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0 0;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.ckd {
  border: 0;
  border-radius: 12px;
  padding: 0;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  box-shadow: 0 30px 80px -20px rgba(17, 27, 57, 0.5);
}
.ckd::backdrop {
  background: rgba(17, 27, 57, 0.55);
}
.ckd-in {
  padding: 28px;
}
.ckd h2 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.ckd > .ckd-in > p {
  color: var(--grau);
  font-size: 0.94rem;
}
.ck-kat {
  border-top: 1px solid var(--linie);
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  align-items: start;
}
.ck-kat b {
  font-weight: 600;
}
.ck-kat p {
  grid-column: 1;
  margin: 0;
  color: var(--grau);
  font-size: 0.88rem;
}
.schalter {
  grid-row: 1 / span 2;
  grid-column: 2;
  position: relative;
  width: 48px;
  height: 28px;
}
.schalter input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.schalter span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #b6bfcf;
  transition: background 0.2s;
}
.schalter span::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.schalter input:checked + span {
  background: var(--blau);
}
.schalter input:checked + span::after {
  transform: translateX(20px);
}
.schalter input:disabled + span {
  opacity: 0.6;
}
.schalter input:focus-visible + span {
  outline: 3px solid #6f95ff;
  outline-offset: 2px;
}
.ckd .ck-btns {
  margin-top: 10px;
}

/* ---------- Barrierefreiheit-Werkzeug ---------- */
.bf-knopf {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 110;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  background: var(--blau);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -8px rgba(23, 36, 74, 0.55);
}
.bf-knopf:hover {
  background: var(--blau-tief);
}
.bf-knopf svg {
  width: 30px;
  height: 30px;
}
.bf {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 111;
  width: min(340px, calc(100vw - 40px));
  background: #fff;
  border-radius: 10px;
  box-shadow:
    0 24px 60px -20px rgba(17, 27, 57, 0.5),
    0 0 0 1px rgba(17, 27, 57, 0.08);
  padding: 20px;
}
.bf[hidden] {
  display: none;
}
.bf h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bf-zu {
  background: none;
  border: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  line-height: 1;
}
.bf-zu:hover {
  background: var(--papier);
}
.bf-gruppe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bf-gruppe button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 12px;
  border-radius: 8px;
  border: 1.5px solid var(--linie);
  background: #fff;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.3;
}
.bf-gruppe button:hover {
  border-color: var(--blau);
}
.bf-gruppe button[aria-pressed='true'] {
  border-color: var(--blau);
  background: var(--nebel);
  color: var(--blau-tief);
}
.bf-gruppe svg {
  width: 20px;
  height: 20px;
  color: var(--blau);
}
.bf-schrift {
  grid-column: 1/-1;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between;
}
.bf-schrift span {
  display: flex;
  gap: 6px;
}
.bf-schrift i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--linie);
  font-weight: 600;
}
.bf-reset {
  margin-top: 12px;
  width: 100%;
  background: none;
  border: 0;
  color: var(--blau);
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 600px) {
  .bf-knopf {
    width: 46px;
    height: 46px;
    right: 14px;
    bottom: 14px;
  }
  .bf-knopf svg {
    width: 26px;
    height: 26px;
  }
  .bf {
    right: 14px;
    bottom: 70px;
  }
  .ck {
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 16px 16px 12px;
    font-size: 0.84rem;
  }
  .ck h2 {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }
  .ck p {
    margin-bottom: 12px;
  }
  .ck .btn {
    min-height: 40px;
  }
  .ck-link {
    padding-top: 4px;
  }
}

/* Zustände aus dem Werkzeug */
html.bf-t1 {
  font-size: 112.5%;
}
html.bf-t2 {
  font-size: 125%;
}
html.bf-t3 {
  font-size: 140%;
}
html.bf-t1 body,
html.bf-t2 body,
html.bf-t3 body {
  font-size: 1.0625rem;
}
html.bf-links a:not(.btn) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  outline: 1px dashed currentColor;
  outline-offset: 2px;
}
html.bf-abstand body {
  letter-spacing: 0.03em;
  word-spacing: 0.12em;
  line-height: 1.95;
}
html.bf-abstand p,
html.bf-abstand li {
  line-height: 1.95;
}
html.bf-ruhe *,
html.bf-ruhe *::before,
html.bf-ruhe *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.bf-kontrast {
  --grau: #2a3242;
  --linie: #6b7486;
  --blau: #1f3a7a;
  --text: #000;
}
html.bf-kontrast .hero-bild,
html.bf-kontrast .kopf-bild {
  opacity: 0.25;
}
html.bf-kontrast .sec-nacht .lede,
html.bf-kontrast .kopf .lede,
html.bf-kontrast .hero .lede,
html.bf-kontrast .cta p,
html.bf-kontrast .ftr {
  color: #fff;
}
html.bf-kontrast .kachel img,
html.bf-kontrast .split-bild img {
  filter: contrast(1.15);
}
html.bf-kontrast :focus-visible {
  outline-color: #ffbf00;
  outline-width: 4px;
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Druck ---------- */
@media print {
  .hdr,
  .ck,
  .bf,
  .bf-knopf,
  .cta,
  .burger,
  .massstab {
    display: none !important;
  }
  .hero,
  .kopf {
    background: none;
    color: #000;
    min-height: 0;
  }
  .hero-bild,
  .kopf-bild {
    display: none;
  }
  .hero .lede,
  .kopf .lede {
    color: #000;
  }
  a {
    color: #000;
  }
}

/* EC-BTN-104 + EC-NAV-121: Re-assert hero / CTA text-white on buttons & links.
   Uses class~= (word match) not class*= (substring) to avoid matching hover:text-white etc. */
button[class~='text-white/90'],
a[class~='text-white/90'] {
  color: rgba(255, 255, 255, 0.9);
}
button[class~='text-white/80'],
a[class~='text-white/80'] {
  color: rgba(255, 255, 255, 0.8);
}
button[class~='text-white/70'],
a[class~='text-white/70'] {
  color: rgba(255, 255, 255, 0.7);
}
button[class~='text-white/60'],
a[class~='text-white/60'] {
  color: rgba(255, 255, 255, 0.6);
}
button[class~='text-white/50'],
a[class~='text-white/50'] {
  color: rgba(255, 255, 255, 0.5);
}
button[class~='text-white/40'],
a[class~='text-white/40'] {
  color: rgba(255, 255, 255, 0.4);
}
button[class~='text-white'],
a[class~='text-white'] {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* EC-ANIM-008b / EC-ANIM-009: carousel-only override — scroll-reveal elements animate via IO in functions.php */
.scroll-fade-up:has([aria-roledescription='carousel']),
.scroll-fade-up:has([data-wpconvert-blog-filter-bar]),
.scroll-fade-left:has([aria-roledescription='carousel']),
.scroll-fade-right:has([aria-roledescription='carousel']),
.scroll-scale-in:has([aria-roledescription='carousel']) {
  opacity: 1 !important;
  transform: none !important;
}

/* WEMATEC-Theme-Korrekturen */
/* Kopfzeile bleibt beim Scrollen sichtbar (WPConvert setzt header/nav sonst auf position:relative !important) */
header.hdr.hdr.hdr.hdr{position:sticky!important;top:0}
.btn-kopf{white-space:nowrap}
.nav .nav-cta .btn{background:var(--blau);color:#fff;justify-content:center;margin-left:0}
.nav .nav-cta .btn:hover{background:var(--blau-tief);color:#fff}
@media (max-width:1080px){
  #hauptnav#hauptnav.nav{position:fixed!important;inset:var(--hdr) 0 0 0!important;width:auto!important;height:auto!important}
  #hauptnav>ul>li>a[aria-current="page"]{box-shadow:none!important}
  #hauptnav .sub.offen{max-height:none!important;height:auto!important;opacity:1!important;overflow:visible!important}
}
@media (min-width:1081px){
  #hauptnav#hauptnav.nav{position:static!important}
}
