/* Allinger Brunnenbau, Stil nach Entwurf B (varianten/b/styles.css), bereinigt.
   Die Schriftpfade {{name}} ersetzt bauen.mjs durch die gehashten Asset-Pfade. */

@font-face {
  font-family: Ubuntu;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ubuntu-400.7f653b3ce9.woff2") format("woff2");
}

@font-face {
  font-family: Ubuntu;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ubuntu-500.e8e147e159.woff2") format("woff2");
}

@font-face {
  font-family: Ubuntu;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ubuntu-700.7c00752ce8.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-400.02194deb92.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-600.f2b7e1cf1d.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-700.7691c51bc2.woff2") format("woff2");
}

:root {
  --tief: #0a2540;
  --marke: #0b4f8a;
  --mittel: #1f6fb2;
  --hell: #7cc4f0;
  --hell2: #9ec9ea;
  --text: #1c1c1c;
  --neben: #5b5b5b;
  --flaeche: #f4f7fa;
  --linie: #c9d6e3;
  --rahmen-tief: #2a4a6e;
  --serif: "Source Serif 4", georgia, serif;
  --rand-links: max(40px, calc((100vw - 1240px) / 2 + 40px));
}

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

body {
  margin: 0;
  font-family: Ubuntu, system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:not(.logo) {
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
}

svg {
  flex-shrink: 0;
  max-width: 100%;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--mittel);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px #fff;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Kopf */

.kopf {
  background: #fff;
  border-bottom: 1px solid var(--linie);
}

.kopf .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 104px;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
}

.logo img {
  display: block;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
}

.nav a:hover {
  color: var(--marke);
  background: var(--flaeche);
}

.nav a[aria-current="page"] {
  color: var(--marke);
  box-shadow: inset 0 -3px 0 var(--marke);
  border-radius: 0;
}

.nav a.nav-cta {
  background: var(--marke);
  color: #fff;
  margin-left: 12px;
  padding: 10px 20px;
  border-radius: 4px;
}

.nav a.nav-cta:hover {
  background: var(--tief);
  color: #fff;
}

.nav a.nav-cta[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--tief);
}

.mobile-controls {
  display: none;
}

.mobile-menu summary {
  gap: 8px;
}

/* Schaltflächen und Links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn svg {
  flex: none;
}

.btn-hell {
  background: var(--hell);
  color: var(--tief);
}

.btn-hell:hover {
  background: #fff;
}

.btn-rand-w {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.btn-rand-w:hover {
  background: #fff;
  color: var(--tief);
}

.btn-blau {
  background: var(--marke);
  color: #fff;
}

.btn-blau:hover {
  background: var(--tief);
}

.btn-rand-b {
  border-color: var(--marke);
  color: var(--marke);
  background: #fff;
}

.btn-rand-b:hover {
  background: var(--flaeche);
}

.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--marke);
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
}

.tief .textlink {
  color: var(--hell);
}

/* Brotkrumen */

.krumen {
  background: var(--flaeche);
  font-size: 15px;
}

.krumen ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
}

.krumen a {
  color: var(--marke);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.krumen li + li::before {
  content: "/";
  color: var(--neben);
  margin-right: 10px;
}

/* Hero */

.hero {
  background: var(--tief);
  color: #fff;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 640px;
}

.start .hero-grid {
  min-height: 720px;
}

/* Brunnenart ohne eigenes Foto: Text über die volle Breite, kein leerer Bildrahmen */
.hero-grid.ohne-foto {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.hero-grid.ohne-foto .hero-text {
  max-width: none;
}

/* picture ist nur Hülle für source und img: das Raster greift auf das img durch */
.hero-foto picture,
.split-foto picture {
  display: contents;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 72px 64px 72px var(--rand-links);
}

.start .hero-text {
  gap: 28px;
  padding: 80px 64px 80px var(--rand-links);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 68px;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--hell);
}

.hero .unter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--hell);
  margin: -8px 0 0;
}

.hero .lead {
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  max-width: 34em;
  color: #fff;
}

.hero-foto {
  position: relative;
  margin: 0;
}

.hero-foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Kennzahlen und Welle */

.kennband {
  background: var(--tief);
  color: #fff;
  padding: 24px 0 72px;
}

.kennband .wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
}

.kenn {
  border-top: 1px solid var(--rahmen-tief);
  padding-top: 20px;
}

.kenn b {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  color: #fff;
}

.kenn span {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  color: var(--hell2);
}

.welle {
  display: block;
  width: 100%;
  height: 56px;
}

.welle-tief {
  background: var(--tief);
  color: var(--hell);
  padding-bottom: 8px;
}

/* Kapitel */

.kap {
  padding: 64px 0;
}

.start .kap {
  padding: 112px 0;
}

.kap-flaeche {
  background: var(--flaeche);
}

.kap-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.kap-nr {
  font-family: var(--serif);
  font-size: 96px;
  line-height: 0.9;
  color: var(--marke);
  font-weight: 400;
}

.kap-nr small {
  display: block;
  font-family: Ubuntu, sans-serif;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neben);
  margin-bottom: 12px;
  font-weight: 700;
}

.nr {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--marke);
}

.tief .nr {
  color: var(--hell);
}

.kap h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  margin: 8px 0 24px;
  color: var(--tief);
}

.start .kap h2 {
  font-size: 52px;
  margin: 0 0 24px;
}

.kap h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--tief);
}

.kap p {
  margin: 0 0 20px;
  max-width: 38em;
}

.gross {
  font-size: 21px;
  line-height: 1.65;
}

/* Karten der Brunnenarten */

.arten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 20px;
  margin-top: 56px;
}

.art {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  min-height: 100%;
}

.art:hover {
  border-color: var(--marke);
}

.art svg {
  width: 72px;
  height: 72px;
  color: var(--marke);
}

.kap .art h3 {
  font-size: 23px;
  margin: 0;
}

.kap .art p {
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  color: var(--neben);
  flex: 1;
}

.art .mehr {
  font-size: 16px;
  font-weight: 700;
  color: var(--marke);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.art .mehr svg {
  width: 18px;
  height: 18px;
}

.kap-fuss {
  margin-top: 40px;
  display: flex;
  justify-content: flex-end;
}

/* Geteilte Abschnitte mit randabfallendem Foto */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 760px;
}

.leistung .split {
  min-height: 820px;
}

/* Abschnitt ohne eigenes Foto: Text über die volle Breite */
.split.ohne-foto {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.split-foto {
  margin: 0;
  position: relative;
}

.split-foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-text {
  padding: 96px var(--rand-links) 96px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-text.links {
  padding: 96px 72px 96px var(--rand-links);
}

.split-text h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  margin: 8px 0 24px;
  color: var(--tief);
}

.split-text p {
  margin: 0 0 20px;
  font-size: 19px;
}

.schritte {
  list-style: none;
  padding: 0;
  margin: 8px 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  counter-reset: s;
}

.schritte li {
  counter-increment: s;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  font-size: 17px;
  min-height: 44px;
}

.schritte li::before {
  content: counter(s);
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--marke);
  color: var(--marke);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 18px;
}

.hinweis {
  font-size: 15px;
  color: var(--neben);
  border-top: 1px solid var(--linie);
  padding-top: 16px;
  margin-top: 4px;
}

/* Tiefblaue Flächen */

.tief {
  background: var(--tief);
  color: #fff;
}

.tief .split-text h2,
.tief h2 {
  color: #fff;
}

.tief p {
  color: #fff;
}

.tief .hinweis {
  color: var(--hell2);
  border-top-color: var(--rahmen-tief);
}

.geraete {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 28px;
}

.geraete div {
  border: 1px solid var(--rahmen-tief);
  border-radius: 6px;
  padding: 16px;
}

.geraete b {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  color: #fff;
  line-height: 1.2;
}

.geraete span {
  font-size: 15px;
  color: var(--hell2);
}

/* Abschluss der Startseite */

.abschluss {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.tropfen {
  width: 96px;
  height: 120px;
  color: var(--marke);
}

.kontaktliste {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 32px;
}

.kontaktliste a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--tief);
  text-decoration: none;
  min-height: 48px;
}

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

.kontaktliste svg {
  color: var(--marke);
}

.orte {
  display: grid;
  gap: 20px;
}

.ort {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 28px;
}

.kap .ort h3 {
  font-size: 24px;
  margin: 0 0 4px;
}

.kap .ort .rolle {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--marke);
  margin: 0 0 12px;
}

.kap .ort p {
  font-size: 16px;
  margin: 0 0 8px;
}

.ort a {
  font-weight: 700;
  color: var(--marke);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.ortgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 72px;
}

/* Offene Stellen der Vorschau */

.offen {
  display: inline-block;
  background: transparent;
  border: 1px dashed var(--neben);
  color: var(--neben);
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.5;
}

.tief .offen,
.kopfband .offen {
  border-color: var(--hell2);
  color: var(--hell2);
}

/* Seiten der Brunnenarten */

.hinweisbox {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 24px;
  margin-top: 32px;
  max-width: 54em;
}

.hinweisbox svg {
  color: var(--marke);
}

.hinweisbox b {
  display: block;
  font-size: 18px;
  color: var(--tief);
  margin-bottom: 6px;
}

.kap .hinweisbox p {
  font-size: 17px;
  margin: 0;
}

.verfahren {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 24px;
  margin-top: 40px;
}

.vf {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 32px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.vf svg {
  width: 110px;
  height: 150px;
  color: var(--marke);
}

.vf h3 {
  hyphens: auto;
  overflow-wrap: anywhere;
}

.kap .vf p {
  font-size: 18px;
  margin: 0;
}

.ablauf {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: a;
  display: flex;
  flex-direction: column;
}

.ablauf li {
  counter-increment: a;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--linie);
  font-size: 18px;
}

.ablauf li > *,
.hilft li > * {
  grid-column: 2;
  min-width: 0;
}

.ablauf li::before {
  grid-column: 1;
  grid-row: 1;
  content: counter(a);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--marke);
  color: var(--marke);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 20px;
}

.ablauf b {
  display: block;
  color: var(--tief);
}

.zwei {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 72px;
}

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

.liste li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--linie);
  font-size: 18px;
}

.liste svg {
  flex: none;
  margin-top: 4px;
  color: var(--marke);
}

.maschine {
  border-top: 1px solid var(--rahmen-tief);
  padding: 24px 0;
}

.kap .maschine h3 {
  font-size: 28px;
  color: #fff;
  margin: 0 0 8px;
}

.kap .maschine p {
  margin: 0;
  font-size: 18px;
}

.weitere {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
  margin-top: 32px;
}

.weitere a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 20px 22px;
  min-height: 72px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--tief);
}

.weitere a:hover {
  border-color: var(--marke);
}

.weitere svg {
  color: var(--marke);
  flex: none;
}

.cta {
  background: var(--tief);
  color: #fff;
  padding: 80px 0;
}

.cta .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.cta h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 44px;
  margin: 0 0 12px;
}

.cta p {
  margin: 0;
  font-size: 19px;
  max-width: 36em;
}

/* Einfache Seiten: Kopfband und Inhalt */

.kopfband {
  background: var(--tief);
  color: #fff;
  padding: 88px 0 0;
}

.kopfband .wrap {
  display: flow-root;
}

.kopfband h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 72px;
  line-height: 1.02;
  margin: 0 0 20px;
}

.kopfband .lead {
  font-size: 21px;
  margin: 0 0 56px;
  max-width: 32em;
}

.kopfband .ohne-lead {
  margin-bottom: 56px;
}

.direkt {
  background: var(--tief);
  color: #fff;
  border-radius: 6px;
  padding: 36px;
}

.kap .direkt h2 {
  color: #fff;
  font-size: 36px;
}

.kliste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.kliste li {
  border-top: 1px solid var(--rahmen-tief);
}

.kliste a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  text-decoration: none;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.kliste a small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--hell2);
}

.kliste svg {
  color: var(--hell);
  flex: none;
}

.zweispaltig {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.hilft {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 32px;
}

.kap .hilft h2 {
  font-size: 28px;
  margin: 0 0 16px;
}

.hilft ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: h;
}

.hilft li {
  counter-increment: h;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  font-size: 17px;
  border-top: 1px solid var(--linie);
}

.hilft li::before {
  grid-column: 1;
  grid-row: 1;
  content: counter(h);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--marke);
  color: var(--marke);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
}

/* Fuss */

.fuss {
  background: var(--tief);
  color: #fff;
  padding: 72px 0 40px;
  font-size: 16px;
  border-top: 1px solid var(--rahmen-tief);
}

.fuss-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
}

.fuss .footer-heading {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hell2);
  margin: 0 0 16px;
  font-weight: 700;
}

.fuss p {
  margin: 0 0 10px;
  color: #fff;
  line-height: 1.6;
}

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

.fuss li a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.fuss li a:hover {
  text-decoration: underline;
}

.fuss .klein {
  color: var(--hell2);
  font-size: 14px;
}

.fuss-unten {
  margin-top: 48px;
  border-top: 1px solid var(--rahmen-tief);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.fuss-unten a {
  color: #fff;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.fuss-links {
  display: flex;
  gap: 28px;
}

/* Breiten */

@media (min-width: 1200px) {
  .leistung .hero h1 {
    font-size: clamp(46px, 4vw, 58px);
    letter-spacing: -0.025em;
  }
}

@media (min-width: 900px) {
  .arten {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .art {
    padding: 28px 16px 24px;
  }

  .kap .art h3 {
    font-size: 22px;
    hyphens: auto;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .kopf .wrap {
    gap: 20px;
  }

  .nav a {
    padding: 10px 8px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .leistung .hero h1 {
    font-size: clamp(43px, 4.8vw, 56px);
  }

  .hero-text,
  .start .hero-text {
    padding: 60px 32px;
  }

  .split-text,
  .split-text.links {
    padding: 64px 32px;
  }

  .geraete {
    grid-template-columns: 1fr;
  }

  .direkt {
    padding: 24px;
  }

  .kliste a {
    font-size: 19px;
  }

  .fuss-grid {
    gap: 24px;
  }
}

@media (max-width: 899px) {
  body {
    font-size: 17px;
    overflow-wrap: break-word;
  }

  .wrap {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 680px;
  }

  .kopf .nav {
    display: none;
  }

  .kopf .wrap {
    min-height: 76px;
    gap: 8px;
    position: relative;
    padding-right: 12px;
  }

  .logo {
    flex-shrink: 0;
    justify-content: center;
  }

  .logo img {
    width: 154px;
  }

  .mobile-controls {
    display: flex;
    gap: 4px;
    align-items: center;
  }

  .mobile-phone {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--linie);
    border-radius: 6px;
    color: var(--marke);
  }

  .mobile-menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--marke);
    border-radius: 6px;
    color: var(--marke);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 12px;
    right: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--linie);
    box-shadow: 0 8px 16px #0a254026;
    display: flex;
    flex-direction: column;
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 16px;
    text-decoration: none;
    color: var(--marke);
  }

  .mobile-nav a:hover {
    background: var(--flaeche);
  }

  .mobile-nav a[aria-current="page"] {
    font-weight: 700;
  }

  .hero-grid,
  .start .hero-grid {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero-foto {
    order: -1;
  }

  .hero-foto img {
    height: 340px;
    object-position: center 45%;
  }

  .leistung .hero-foto img {
    height: 360px;
  }

  .hero-text,
  .start .hero-text {
    padding: 32px 20px 36px;
    gap: 18px;
    max-width: 680px;
    width: 100%;
    margin: auto;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.06;
  }

  .leistung .hero h1 {
    font-size: clamp(30px, 9.6vw, 40px);
    line-height: 1.04;
    letter-spacing: -0.025em;
  }

  .hero .unter {
    font-size: 22px;
    margin: -6px 0 0;
  }

  .hero .lead {
    font-size: 18px;
  }

  .btnrow {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    min-height: 56px;
    padding: 10px 16px;
    font-size: 18px;
    text-align: center;
  }

  .kennband {
    padding: 8px 0 36px;
  }

  .kennband .wrap {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .kenn {
    padding-top: 10px;
  }

  .kenn b {
    font-size: 38px;
    line-height: 1.05;
  }

  .kenn span {
    font-size: 15px;
    margin-top: 0;
  }

  .welle {
    height: 36px;
  }

  .welle-tief {
    padding-bottom: 6px;
  }

  .kap,
  .start .kap {
    padding: 56px 0;
  }

  .kap-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .kap-nr {
    font-size: 56px;
    display: flex;
    align-items: end;
    gap: 14px;
  }

  .kap-nr small {
    font-size: 12px;
    margin-bottom: 0;
  }

  .kap h2,
  .start .kap h2,
  .split-text h2 {
    font-size: 32px;
    line-height: 1.12;
    margin: 8px 0 16px;
  }

  .kap h3 {
    font-size: 22px;
  }

  .kap p {
    margin: 0 0 16px;
  }

  .gross {
    font-size: 18px;
  }

  .arten {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .art {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 24px;
    gap: 4px 14px;
    padding: 16px;
    min-height: 88px;
  }

  .art > svg {
    width: 56px;
    height: 56px;
    grid-row: 1 / 3;
  }

  .kap .art h3 {
    font-size: 20px;
    margin: 0;
  }

  .kap .art p {
    grid-column: 2;
    grid-row: 2;
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
  }

  .art .mehr {
    grid-column: 3;
    grid-row: 1 / 3;
    font-size: 0;
    gap: 0;
  }

  .art .mehr svg {
    width: 24px;
    height: 24px;
  }

  .kap-fuss {
    margin-top: 24px;
  }

  .split,
  .leistung .split {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .split-foto {
    order: -1;
  }

  .tief .split-foto {
    order: 0;
  }

  .split-foto img {
    height: 300px;
  }

  .leistung .split-foto img {
    height: 320px;
  }

  .split-text,
  .split-text.links {
    padding: 48px 20px 56px;
    max-width: 680px;
    width: 100%;
    margin: auto;
  }

  .split-text p {
    font-size: 17px;
  }

  .nr {
    font-size: 19px;
  }

  .schritte {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 16px 0 0;
  }

  .schritte li {
    min-height: 56px;
    padding: 6px 0;
    border-bottom: 1px solid var(--linie);
  }

  .geraete {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 20px 0;
  }

  .geraete div {
    padding: 16px 18px;
  }

  .geraete b {
    font-size: 20px;
  }

  .abschluss,
  .zweispaltig {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .kontaktliste a {
    font-size: 20px;
    min-height: 60px;
  }

  .ort {
    padding: 20px;
  }

  .kap .ort h3 {
    font-size: 22px;
  }

  .kap .ort .rolle {
    font-size: 12px;
  }

  .ortgrid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 40px;
  }

  .zwei {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hinweisbox {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 12px;
    margin-top: 20px;
  }

  .hinweisbox > svg {
    display: none;
  }

  .verfahren {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .vf {
    padding: 20px;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
  }

  .vf svg {
    width: 64px;
    height: 88px;
  }

  .kap .vf p {
    font-size: 16px;
  }

  .ablauf li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 8px 0;
    font-size: 17px;
  }

  .ablauf li::before {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .maschine {
    padding: 18px 0;
  }

  .kap .maschine h3 {
    font-size: 22px;
  }

  .weitere {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  .weitere a {
    font-size: 19px;
    padding: 14px 18px;
    min-height: 60px;
  }

  .cta {
    padding: 48px 0;
  }

  .cta .wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta h2 {
    font-size: 32px;
    line-height: 1.12;
  }

  .cta p {
    font-size: 17px;
  }

  .krumen {
    font-size: 14px;
  }

  .krumen ol {
    gap: 8px;
    flex-wrap: wrap;
  }

  .krumen li + li::before {
    margin-right: 8px;
  }

  .kopfband {
    padding: 36px 0 28px;
  }

  .kopfband h1 {
    font-size: 44px;
    line-height: 1.04;
    margin: 10px 0 14px;
  }

  .kopfband .lead {
    font-size: 18px;
    margin: 0;
  }

  .kopfband .ohne-lead {
    margin: 0;
  }

  .direkt,
  .hilft {
    padding: 28px 20px;
  }

  .kliste a {
    font-size: 20px;
  }

  .offen {
    font-size: 13px;
  }

  .fuss {
    padding: 44px 0 28px;
  }

  .fuss-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .fuss .footer-heading {
    font-size: 13px;
    margin: 0 0 8px;
  }

  .fuss-unten {
    margin-top: 24px;
    padding-top: 16px;
    gap: 8px;
  }

  .fuss .klein {
    font-size: 13px;
  }

  .fuss-links {
    gap: 24px;
  }
}

@media (max-width: 359px) {
  .kopf .wrap {
    padding-left: 12px;
    padding-right: 8px;
  }

  .mobile-menu summary {
    padding: 0 8px;
  }

  .mobile-phone {
    width: 44px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .leistung .hero h1 {
    font-size: 35px;
  }

  .kenn b {
    font-size: 32px;
  }

  .kontaktliste a,
  .kliste a {
    font-size: 18px;
    gap: 8px;
  }

  .art {
    padding: 12px;
    gap: 4px 10px;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
  }

  .art > svg {
    width: 44px;
    height: 44px;
  }

  .kap .art h3 {
    font-size: 19px;
  }
}

/* Inhaltsseiten, Projektgalerien und progressive Lexikonsuche. */
.projektfotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  margin-top: 32px;
}

.projektfotos figure { margin: 0; }
.projektfotos img { width: 100%; height: auto; display: block; }
.lesetext { max-width: 38em; overflow-wrap: anywhere; }
.lesetext h2 { margin-top: 48px; }
.lexikon-eintrag { padding: 24px 0; border-bottom: 1px solid var(--linie); }
.lexikon-eintrag dt { font-weight: 700; font-size: 22px; scroll-margin-top: 120px; }
.lexikon-eintrag dd { margin: 0; }
.buchstaben { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.buchstaben a { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid currentcolor; }
.lexikon-gruppe h2 { scroll-margin-top: 120px; }
.lexikon-suche { margin-bottom: 32px; }
.lexikon-suche label { display: block; font-weight: 700; margin-bottom: 8px; }
.lexikon-suche input { width: 100%; min-height: 48px; padding: 10px; font: inherit; border: 1px solid currentcolor; border-radius: 0; }
[hidden] { display: none !important; }

/* Kompakte Inhaltsseiten mit gemeinsamer linker Textkante. */
.kartenraster,
.grundsaetze,
.ueber-uns {
  display: grid;
  gap: 32px;
  align-items: start;
}

.maschinenkarte,
.grundsatz {
  min-width: 0;
  border: 1px solid var(--linie);
  border-radius: 6px;
  overflow: hidden;
}

.karten-text,
.grundsatz {
  padding: 28px;
}

.maschinenkarte figure,
.ueber-uns figure {
  margin: 0;
}

.maschinenkarte img,
.ueber-uns img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.maschinenkarte .fokus-unten img {
  object-position: center 100%;
}

.kap .maschinenkarte h2,
.kap .grundsatz h2 {
  margin-top: 0;
  font-size: 30px;
}

.karten-text > :last-child,
.grundsatz > :last-child,
.lesetext > :last-child {
  margin-bottom: 0;
}

.grundsaetze {
  margin-top: 48px;
}

figcaption {
  padding: 8px 16px;
  font-size: 16px;
  color: var(--text);
  background: var(--flaeche);
}

.hero-foto figcaption,
.split-foto figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
}

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

  .grundsaetze {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ueber-uns.mit-foto {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }

  .leistung .split-text {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .split.ohne-foto .split-text {
    padding-left: var(--rand-links);
    padding-right: var(--rand-links);
  }
}

/* Kurze Listeneinträge nutzen die Textspalte, Links erhalten breite Klickflächen. */
.liste li > span,
.schritte li > span {
  flex: 1;
  min-width: 0;
}

.btn,
.textlink,
.ort a {
  min-width: min(12em, 100%);
}

@media (min-width: 900px) {
  .hero-foto img {
    position: absolute;
    inset: 0;
  }
}
