/* c2 „Lastenheft“ – Zeichnungsblatt auf hellem Papier */
@import url("../_gemeinsam/fonts.css");

:root {
  --papier: #F5F6F2;
  --weiss: #FFFFFF;
  --tusche: #1D2327;
  --tusche-2: #4B565D;
  --mass: #24577A;
  --hilfslinie: #7E8A90;
  --hilfslinie-hell: #CDD3D3;
  --honig: #E9A825;
  --rot: #B42318;

  --schrift: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --schraeg: italic; /* synthetisch geneigt (Public Sans hat lokal keinen Kursivschnitt) */

  --rand: 72px;          /* Innenabstand im Rahmen */
  --abschnitt: 112px;
  --rinne: 24px;
}

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

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

body {
  margin: 28px;
  background: var(--papier);
  color: var(--tusche);
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

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

a { color: inherit; }

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

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--weiss); border: 2px solid var(--tusche);
  padding: 8px 14px; z-index: 50; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Gezeichnete Beschriftung (Normschrift, geneigt) ---------- */
h1, h2, h3, .zeichen {
  font-style: var(--schraeg);
  font-weight: 600;
  letter-spacing: -0.005em;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: 64px; line-height: 1.05; letter-spacing: -0.012em; }
h2 { font-size: 38px; line-height: 1.12; }
h3 { font-size: 23px; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 62ch; }

.dach {
  font-style: var(--schraeg);
  font-weight: 500;
  font-size: 16px;
  color: var(--mass);
  margin: 0 0 20px;
  display: flex; align-items: center; gap: 12px;
}
.dach::before {             /* Bezugslinie mit Punkt */
  content: ""; width: 36px; height: 1px; background: var(--mass);
  box-shadow: -3px 0 0 2px var(--papier);
}
.lead { font-size: 20px; line-height: 1.5; color: var(--tusche); }
.neben { color: var(--tusche-2); }

/* ---------- Blatt mit Zeichnungsrahmen ---------- */
.blatt {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  border: 2px solid var(--tusche);
  outline: 1px solid var(--tusche);
  outline-offset: 9px;
  background: var(--papier);
}

/* Zonenfelder oben 1–8 */
.zonen {
  display: grid; grid-template-columns: repeat(8, 1fr);
  list-style: none; margin: 0; padding: 0;
  border-bottom: 1px solid var(--tusche);
  height: 22px;
}
.zonen li {
  font-size: 13px; line-height: 21px; text-align: center;
  font-style: var(--schraeg); color: var(--tusche-2);
  border-left: 1px solid var(--hilfslinie-hell);
}
.zonen li:first-child { border-left: 0; }

/* Zonenbuchstaben links je Abschnitt */
.blatt::before {
  content: ""; position: absolute; top: 22px; bottom: 0; left: 40px;
  border-left: 1px solid var(--tusche);
}
[data-zone] { position: relative; }
[data-zone]::before {
  content: attr(data-zone);
  position: absolute; left: 0; top: calc(var(--abschnitt) - 2px);
  width: 40px; text-align: center;
  font-style: var(--schraeg); font-size: 14px; font-weight: 500; color: var(--tusche-2);
}
.einstieg[data-zone]::before, .einstieg-schmal[data-zone]::before { top: 72px; }

/* ---------- Kopfzeile ---------- */
.kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--rand) 18px;
  margin-left: 0;
  border-bottom: 1px solid var(--tusche);
  position: relative;
}
.marke {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--tusche);
}
.marke img { width: 40px; height: 40px; }
.marke .wort { font-weight: 700; font-size: 21px; letter-spacing: -0.01em; line-height: 1; }
.marke small { font-weight: 500; font-size: 14px; color: var(--tusche-2); margin-left: 4px; letter-spacing: 0; }

.nav ul { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.knopf) {
  font-style: var(--schraeg); font-weight: 500; font-size: 17px;
  text-decoration: none; padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:not(.knopf):hover { border-bottom-color: var(--tusche); }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--mass); }

.menu-knopf {
  display: none;
  font: inherit; font-style: var(--schraeg); font-weight: 600; font-size: 16px;
  background: var(--weiss); color: var(--tusche);
  border: 1.5px solid var(--tusche); padding: 8px 14px; cursor: pointer;
}

/* ---------- Knöpfe und Links ---------- */
.knopf {
  display: inline-block;
  background: var(--honig); color: var(--tusche);
  border: 2px solid var(--tusche);
  padding: 12px 22px;
  font-style: var(--schraeg); font-weight: 600; font-size: 17px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.knopf:hover { background: var(--tusche); color: var(--papier); }
.knopf-gross { font-size: 19px; padding: 16px 28px; }
.nav .knopf { padding: 9px 16px; font-size: 16px; }

.verweis {
  font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.verweis:hover { text-decoration-thickness: 2px; }

.knopf-gruppe { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.knopf-zusatz { font-style: var(--schraeg); font-size: 15px; color: var(--tusche-2); display: block; margin-top: 8px; }

/* ---------- Abschnitte ---------- */
main { display: block; }
.abschnitt {
  padding: var(--abschnitt) var(--rand);
  border-bottom: 1px solid var(--tusche);
}
.abschnitt-kopf { max-width: 760px; margin-bottom: 56px; }
.abschnitt-kopf h2 + p { margin-top: 20px; }

/* ---------- Einstieg ---------- */
.einstieg {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 56px;
  align-items: start;
  padding-top: 72px; padding-bottom: 96px;
}
.einstieg-titel { grid-column: 1 / -1; }
.einstieg h1, .einstieg-schmal h1 { font-size: 96px; line-height: 1.0; letter-spacing: -0.02em; max-width: 22ch; margin-bottom: 48px; }
.einstieg-text { min-width: 0; padding-top: 40px; }

.einstieg-schmal { padding-top: 72px; padding-bottom: 88px; }

.einstieg-unten { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: start; }
.blatt-inhalt { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--tusche); }
.blatt-inhalt li { border-bottom: 1px solid var(--hilfslinie-hell); }
.blatt-inhalt a { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 11px 0; text-decoration: none; font-style: var(--schraeg); font-weight: 500; font-size: 17px; }
.blatt-inhalt a:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.blatt-inhalt .zone { color: var(--mass); font-weight: 600; }

/* ---------- Bemaßte Ansicht ---------- */
.ansicht { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 30px; grid-template-areas: "mh ." "bild mv" "cap cap"; min-width: 0; }
.ansicht.ohne-hoehe { grid-template-columns: minmax(0, 1fr); grid-template-areas: "mh" "bild" "cap"; }
.ansicht-bild { grid-area: bild; position: relative; border: 1px solid var(--tusche); background: var(--weiss); }
.ansicht-bild img { width: 100%; }
.ansicht-bild.schnitt img { aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.ansicht-bild.schnitt-breit img { aspect-ratio: 16 / 8; object-fit: cover; object-position: left top; }

.mass-h, .mass-v { color: var(--mass); position: relative; font-style: var(--schraeg); font-size: 14px; font-weight: 500; }
.mass-h { grid-area: mh; height: 30px; }
.mass-h::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 9px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9'%3E%3Cpath d='M0 4.5 12 0v9z' fill='%2324577A'/%3E%3C/svg%3E") left center / 12px 9px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9'%3E%3Cpath d='M12 4.5 0 0v9z' fill='%2324577A'/%3E%3C/svg%3E") right center / 12px 9px no-repeat,
    linear-gradient(var(--mass), var(--mass)) center / 100% 1px no-repeat;
}
.mass-h::after {   /* Maßhilfslinien */
  content: ""; position: absolute; left: 0; right: 0; top: 4px; bottom: 0;
  border-left: 1px solid var(--mass); border-right: 1px solid var(--mass);
}
.mass-h span {
  position: absolute; left: 50%; top: 4px; transform: translateX(-50%);
  background: var(--papier); padding: 0 8px; line-height: 22px; z-index: 1;
}
.mass-v { grid-area: mv; width: 30px; }
.mass-v::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 11px; width: 9px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='12'%3E%3Cpath d='M4.5 0 9 12H0z' fill='%2324577A'/%3E%3C/svg%3E") center top / 9px 12px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='12'%3E%3Cpath d='M4.5 12 9 0H0z' fill='%2324577A'/%3E%3C/svg%3E") center bottom / 9px 12px no-repeat,
    linear-gradient(var(--mass), var(--mass)) center / 1px 100% no-repeat;
}
.mass-v::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 4px;
  border-top: 1px solid var(--mass); border-bottom: 1px solid var(--mass);
}
.mass-v span {
  position: absolute; top: 50%; left: 4px; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; background: var(--papier); padding: 8px 0; line-height: 22px; z-index: 1;
}
.ansicht figcaption {
  grid-area: cap; margin-top: 12px;
  font-size: 15px; line-height: 1.45; color: var(--tusche-2); max-width: 62ch;
}

/* Bezugslinien und Positionskreise auf dem Bild */
.bezuege { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bezuege line { stroke: var(--mass); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bezuege circle { fill: var(--mass); }
.ballon-auf {
  position: absolute; transform: translate(-50%, -50%);
}

/* Positionskreis */
.pos {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; flex: none;
  border: 1.5px solid var(--mass); border-radius: 50%;
  background: var(--weiss); color: var(--mass);
  font-style: var(--schraeg); font-weight: 600; font-size: 16px; line-height: 1;
}

.legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.legende li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--tusche); font-style: var(--schraeg); }
.legende .pos { width: 28px; height: 28px; font-size: 14px; }

/* ---------- Stückliste (Leistungen Startseite) ---------- */
.stueckliste { border-top: 2px solid var(--tusche); }
.stueckliste-kopf, .stueck {
  display: grid; grid-template-columns: 72px minmax(0, 5fr) minmax(0, 6fr); gap: 0 var(--rinne);
}
.stueckliste-kopf {
  font-size: 13px; font-style: var(--schraeg); font-weight: 500; color: var(--tusche-2);
  padding: 8px 0; border-bottom: 1px solid var(--tusche);
}
.stueck { padding: 36px 0; border-bottom: 1px solid var(--hilfslinie); align-items: start; }
.stueck:last-child { border-bottom: 2px solid var(--tusche); }
.stueck h3 { margin-bottom: 12px; }
.stueck p { margin: 0; }
.stueck .ansicht { margin-top: -6px; }
.stueckliste-fuss { margin-top: 28px; }

/* ---------- Gantt / Ablauf ---------- */
.gantt { border-top: 2px solid var(--tusche); border-bottom: 2px solid var(--tusche); }
.gantt-zeile {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0;
  border-bottom: 1px solid var(--hilfslinie-hell);
}
.gantt-zeile:last-child { border-bottom: 0; }
.gantt-achse { font-size: 13px; font-style: var(--schraeg); font-weight: 500; color: var(--tusche-2); border-bottom: 1px solid var(--tusche); }
.gantt-achse > div { padding: 8px 0; }
.gantt-vorgang { padding: 26px 32px 26px 0; border-right: 1px solid var(--tusche); display: grid; grid-template-columns: 36px 1fr; gap: 0 16px; }
.gantt-vorgang h3 { font-size: 21px; margin-bottom: 6px; }
.gantt-vorgang p { margin: 0; font-size: 16px; color: var(--tusche); }
.gantt-nr { font-style: var(--schraeg); font-weight: 600; font-size: 21px; color: var(--mass); line-height: 1.25; }
.gantt-spur {
  position: relative; min-height: 80px;
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(100% / 12 - 1px), var(--hilfslinie-hell) calc(100% / 12 - 1px), var(--hilfslinie-hell) calc(100% / 12));
}
.balken {
  position: absolute; top: 50%; height: 18px; margin-top: -9px;
  left: calc(var(--a) / 12 * 100%); width: calc(var(--l) / 12 * 100%);
  border: 1.5px solid var(--tusche);
  background: repeating-linear-gradient(-45deg, var(--weiss) 0 5px, var(--hilfslinie-hell) 5px 6px);
  transform-origin: left center;
  animation: zeichnen .6s cubic-bezier(.3,.7,.2,1) both;
  animation-delay: calc(var(--n) * 180ms);
}
.balken.voll { background: var(--tusche); }
.balken.optional { border-style: dashed; background: transparent; }
.raute {
  position: absolute; top: 50%; left: calc(var(--a) / 12 * 100%);
  width: 20px; height: 20px; margin: -10px 0 0 -10px;
  background: var(--honig); border: 2px solid var(--tusche);
  transform: rotate(45deg);
  animation: raute .3s ease-out both;
  animation-delay: calc(var(--n) * 180ms + 520ms);
}
@keyframes zeichnen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes raute { from { opacity: 0; transform: rotate(45deg) scale(.4); } to { opacity: 1; transform: rotate(45deg) scale(1); } }

.gantt-legende { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; font-style: var(--schraeg); color: var(--tusche-2); }
.gantt-legende li { display: flex; align-items: center; gap: 10px; }
.gantt-legende .m-raute { width: 12px; height: 12px; background: var(--honig); border: 1.5px solid var(--tusche); transform: rotate(45deg); }
.raute.offen { background: var(--weiss); }
.stich {
  position: absolute; top: 50%; left: calc(var(--a) / 12 * 100%);
  width: 2px; height: 30px; margin: -15px 0 0 -1px; background: var(--tusche);
  animation: einblenden .3s ease-out both; animation-delay: calc(var(--n) * 180ms);
}
.spur-text { animation: einblenden .3s ease-out both; animation-delay: 900ms; }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
.spur-text {
  position: absolute; top: calc(50% + 17px); left: calc(var(--a) / 12 * 100%); margin-left: -10px;
  font-size: 13px; font-style: var(--schraeg); font-weight: 500; color: var(--tusche-2); white-space: nowrap; line-height: 1.2;
}
.spur-text.rechts { margin-left: 0; transform: translateX(calc(-100% + 10px)); }
.gantt-legende .m-raute.offen { background: var(--weiss); }
.gantt-legende .m-stich { width: 2px; height: 16px; background: var(--tusche); }
.gantt-legende .m-balken { width: 28px; height: 10px; border: 1.5px solid var(--tusche); background: repeating-linear-gradient(-45deg, var(--weiss) 0 3px, var(--hilfslinie-hell) 3px 4px); }

/* ---------- Über mich ---------- */
.ueber { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.portraet .ansicht-bild { background: var(--weiss); }
.portraet img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 20%; }
.ueber .lead + .lead { margin-top: 0; }
.kontakt-liste { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--tusche); max-width: 560px; }
.kontakt-liste li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hilfslinie-hell); }
.kontakt-liste .feld { font-size: 14px; font-style: var(--schraeg); color: var(--tusche-2); padding-top: 2px; }

/* ---------- Leistungen-Seite ---------- */
.leistung { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.leistung-kopf { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.leistung-kopf .pos { margin-top: 2px; }
.leistung-bilder { display: grid; gap: 40px; min-width: 0; }
.leistung-bilder.nebeneinander { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 32px; }
.liste { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--tusche); max-width: 62ch; }
.liste li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--hilfslinie-hell); position: relative; }
.liste li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 2px; background: var(--mass); }
.anfang { margin-top: 32px; border: 2px solid var(--tusche); border-left-width: 6px; background: var(--weiss); padding: 22px 26px 20px; }
.anfang h3 { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.anfang .m-raute { flex: none; width: 14px; height: 14px; background: var(--honig); border: 2px solid var(--tusche); transform: rotate(45deg); }
.anfang p { margin: 0; }
@media (max-width: 640px) { .anfang { padding: 18px 18px 16px; } }
.formen { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--tusche); margin-top: 28px; }
.formen > div { padding: 18px 20px; }
.formen > div + div { border-left: 1px solid var(--tusche); }
.formen h3 { font-size: 18px; margin-bottom: 6px; }
.formen p { margin: 0; font-size: 16px; }

.kern { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.kern-zeichnung { width: 100%; max-width: 560px; height: auto; }
.kern-zeichnung .k-linie { stroke: var(--tusche); fill: none; }
.kern-zeichnung .k-mass { stroke: var(--mass); fill: none; }
.kern-zeichnung .k-pos { fill: var(--weiss); stroke: var(--mass); stroke-width: 1.5; }
.kern-zeichnung text { font-family: var(--schrift); font-style: italic; font-weight: 600; fill: var(--mass); font-size: 16px; }
.module { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--tusche); border-bottom: 2px solid var(--tusche); }
.module li { display: flex; align-items: center; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--hilfslinie-hell); font-style: var(--schraeg); font-weight: 500; font-size: 18px; }
.module li:last-child { border-bottom: 0; }
.module .pos { width: 30px; height: 30px; font-size: 14px; }

.abschluss { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: end; }
.abschluss p { margin: 16px 0 0; }

/* ---------- Erstgespräch ---------- */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--tusche); border-bottom: 2px solid var(--tusche); }
.schritte li { padding: 28px 28px 28px 0; position: relative; }
.schritte li + li { padding-left: 28px; border-left: 1px solid var(--hilfslinie); }
.schritte .gantt-nr { display: block; margin-bottom: 10px; }
.schritte h3 { margin-bottom: 10px; }
.schritte p { margin: 0; }

.pruefliste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tusche); max-width: 640px; }
.pruefliste li { display: grid; grid-template-columns: 22px 1fr; gap: 16px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--hilfslinie-hell); }
.pruefliste li::before { content: ""; width: 18px; height: 18px; border: 1.5px solid var(--tusche); background: var(--weiss); margin-top: 3px; }
.vorbereiten { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; }
.hinweis { font-style: var(--schraeg); color: var(--tusche-2); margin-top: 20px; }

.formblatt { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 64px; }
form { border: 2px solid var(--tusche); background: var(--weiss); }
.f-raster { display: grid; grid-template-columns: 1fr 1fr; }
.f-feld { padding: 14px 18px 18px; border-bottom: 1px solid var(--tusche); min-width: 0; }
.f-feld:nth-child(odd):not(.f-voll) { border-right: 1px solid var(--tusche); }
.f-voll { grid-column: 1 / -1; }
.f-feld label, .f-feld legend { display: block; font-size: 14px; font-style: var(--schraeg); font-weight: 600; color: var(--tusche); margin-bottom: 8px; padding: 0; }
.pflicht { color: var(--rot); font-weight: 500; }
.f-feld input[type="text"], .f-feld input[type="email"], .f-feld input[type="tel"], .f-feld textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--tusche);
  background: var(--papier); border: 0; border-bottom: 1.5px solid var(--tusche);
  padding: 9px 10px; border-radius: 0;
}
.f-feld textarea { min-height: 110px; resize: vertical; }
.f-feld input:focus-visible, .f-feld textarea:focus-visible { outline: 3px solid var(--mass); outline-offset: 0; background: var(--weiss); }
.f-hilfe { display: block; font-size: 14px; color: var(--tusche-2); margin-top: 6px; }
fieldset.f-feld { margin: 0; border: 0; border-bottom: 1px solid var(--tusche); min-width: 0; }
.optionen { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 20px; }
.optionen label { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; font-style: normal; font-weight: 400; margin: 0; padding: 4px 0; cursor: pointer; }
.optionen input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--tusche); flex: none; }
.f-absenden { padding: 22px 18px 20px; }
.f-absenden p { font-size: 14px; color: var(--tusche-2); margin: 14px 0 0; }
.bestaetigung { margin: 16px 0 0; padding: 12px 14px; border: 1.5px solid var(--mass); color: var(--tusche); font-weight: 600; font-size: 16px; }
.bestaetigung[hidden] { display: none; }
.bestaetigung::before { content: ""; display: inline-block; width: 11px; height: 11px; background: var(--honig); border: 1.5px solid var(--tusche); transform: rotate(45deg); margin-right: 12px; }

.direkt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; align-items: start; }
.direkt .kontakt-liste { margin-top: 0; }

/* ---------- Referenzen ---------- */
.gruppe-kopf { margin-bottom: 8px; }
.datenblatt { padding: 56px 0; border-bottom: 1px solid var(--hilfslinie); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.datenblatt:last-child { border-bottom: 0; padding-bottom: 0; }
.datenblatt-kopf { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.datenblatt-kopf .pos { margin-top: 0; }
.kenndaten { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--tusche); margin: 0 0 22px; }
.kenndaten > div { padding: 10px 14px; }
.kenndaten > div + div { border-left: 1px solid var(--tusche); }
.kenndaten > .voll { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--tusche); }
.kenndaten dt, .befund dt { font-size: 13px; font-style: var(--schraeg); font-weight: 500; color: var(--tusche-2); }
.kenndaten dd { margin: 2px 0 0; font-weight: 600; font-size: 16px; }
.befund { margin: 0; border-top: 1px solid var(--tusche); }
.befund > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hilfslinie-hell); }
.befund dt { padding-top: 3px; }
.befund dd { margin: 0; font-size: 16px; }
.datenblatt .verweis { display: inline-block; margin-top: 18px; }
.datenblatt-bilder { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: start; min-width: 0; }
.datenblatt-bilder.gleich { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.datenblatt-bilder.hoch { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }

/* ---------- Fußzeile als Schriftfeld ---------- */
.fuss {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px); gap: 40px;
  padding: 56px var(--rand) 0;
  align-items: end;
}
.fuss-verweise { padding-bottom: 28px; }
.fuss-verweise ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fuss-verweise a { font-size: 15px; text-underline-offset: 4px; }
.fuss-verweise p { margin: 16px 0 0; font-size: 14px; color: var(--tusche-2); }

.schriftfeld {
  border-top: 2px solid var(--tusche); border-left: 2px solid var(--tusche);
  margin-right: calc(var(--rand) * -1 - 1px); margin-bottom: -1px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  background: var(--weiss);
}
.sf { padding: 6px 12px 9px; border-right: 1px solid var(--tusche); border-bottom: 1px solid var(--tusche); min-width: 0; }
.sf-name { display: block; font-size: 13px; font-weight: 500; color: var(--tusche-2); line-height: 1.3; }
.sf-wert { display: block; font-style: var(--schraeg); font-weight: 600; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.sf-wert a { text-decoration: none; }
.sf-wert a:hover { text-decoration: underline; }
.sf-gross .sf-wert { font-size: 20px; }
.sf-breit { grid-column: span 2; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  :root { --rand: 48px; --abschnitt: 88px; }
  .blatt::before, [data-zone]::before { display: none; }
  .einstieg h1, .einstieg-schmal h1 { font-size: 62px; }
  .einstieg { grid-template-columns: 1fr; gap: 48px; }
  .einstieg-text { max-width: 680px; padding-top: 0; }
  .einstieg-unten { grid-template-columns: 1fr; }
  .fuss { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 900px) {
  .stueckliste-kopf { display: none; }
  .stueck { grid-template-columns: 56px minmax(0, 1fr); gap: 20px var(--rinne); }
  .stueck .ansicht { grid-column: 2; margin-top: 0; }
  .gantt-zeile { grid-template-columns: 1fr; }
  .gantt-achse { display: none; }
  .gantt-vorgang { border-right: 0; padding: 22px 0 6px; }
  .gantt-spur { min-height: 56px; margin-bottom: 14px; border: 1px solid var(--hilfslinie-hell); }
  .gantt-spur.mit-text { min-height: 84px; }
  .gantt-spur.mit-text > :not(.spur-text) { top: 36%; }
  .gantt-spur.mit-text .spur-text { top: calc(36% + 17px); }
  .ueber, .leistung, .kern, .abschluss, .vorbereiten, .formblatt, .direkt, .datenblatt { grid-template-columns: 1fr; }
  .ueber .portraet { max-width: 350px; }
  .schritte { grid-template-columns: 1fr; }
  .schritte li, .schritte li + li { padding: 24px 0; border-left: 0; }
  .schritte li + li { border-top: 1px solid var(--hilfslinie); }
}

@media (max-width: 900px) {
  .menu-knopf { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: 2px solid var(--tusche); z-index: 20; }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--rand) 20px; }
  .nav li { border-bottom: 1px solid var(--hilfslinie-hell); }
  .nav li:last-child { border-bottom: 0; padding-top: 16px; }
  .nav a:not(.knopf) { display: block; padding: 14px 0; font-size: 19px; }
  .nav .knopf { display: block; text-align: center; padding: 14px 16px; font-size: 18px; }
}

@media (max-width: 640px) {
  :root { --rand: 18px; --abschnitt: 64px; }
  body { margin: 14px; font-size: 16px; }
  .blatt { outline-offset: 5px; }
  .einstieg h1, .einstieg-schmal h1 { font-size: 40px; line-height: 1.05; margin-bottom: 28px; }
  h2 { font-size: 27px; }
  h3 { font-size: 20px; }
  .lead { font-size: 18px; }
  .einstieg { padding-top: 44px; padding-bottom: 56px; }
  .einstieg-schmal { padding-top: 48px; padding-bottom: 56px; }
  .abschnitt-kopf { margin-bottom: 36px; }
  .marke img { width: 34px; height: 34px; }
  .marke .wort { font-size: 19px; }
  .marke small { display: none; }
  .kopf { padding-top: 14px; padding-bottom: 14px; }
  .zonen { grid-template-columns: repeat(4, 1fr); }
  .zonen li:nth-child(n+5) { display: none; }
  .ansicht { grid-template-columns: minmax(0, 1fr) 24px; }
  .mass-v { width: 24px; }
  .mass-v::before { left: 8px; }
  .pos { width: 30px; height: 30px; font-size: 14px; }
  .ballon-auf.pos { width: 24px; height: 24px; font-size: 12px; border-width: 1px; }
  .stueck { grid-template-columns: 1fr; }
  .stueck .ansicht { grid-column: 1; }
  .f-raster { grid-template-columns: 1fr; }
  .f-feld:nth-child(odd):not(.f-voll) { border-right: 0; }
  .optionen { grid-template-columns: 1fr; }
  .formen { grid-template-columns: 1fr; }
  .formen > div + div { border-left: 0; border-top: 1px solid var(--tusche); }
  .leistung-bilder.nebeneinander, .datenblatt-bilder, .datenblatt-bilder.gleich, .datenblatt-bilder.hoch { grid-template-columns: 1fr; }
  .datenblatt { padding: 44px 0; }
  .befund > div { grid-template-columns: 1fr; gap: 2px; }
  .kontakt-liste li { grid-template-columns: 1fr; gap: 2px; }
  .knopf-gross { width: 100%; text-align: center; }
  .schriftfeld { grid-template-columns: 1fr 1fr; margin-left: calc(var(--rand) * -1 - 1px); border-left: 0; }
  .schriftfeld { grid-auto-flow: row dense; }
  .sf-breit, .sf-mail, .sf-znr { grid-column: 1 / -1; }
  h1, h2 { hyphens: auto; -webkit-hyphens: auto; }
  .fuss { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Schrittnummern im Erstgespräch als gezeichnete Ziffern */
.schritte .gantt-nr { font-size: 56px; line-height: 1; margin-bottom: 18px; }
.schritte h3 { font-size: 23px; }
@media (max-width: 640px) { .schritte .gantt-nr { font-size: 40px; } }

/* ---------- Erstgespräch: Vorbereiten, Formblatt und Direktkontakt auf einem Blattstreifen ---------- */
.vorb-form {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "vorb form" "direkt form";
  grid-template-rows: auto 1fr;
  gap: 0 64px;
}
.vf-vorb { grid-area: vorb; position: relative; }
.vf-form { grid-area: form; position: static; padding-left: 64px; margin-left: -32px; border-left: 1px solid var(--hilfslinie-hell); }
.vf-direkt { grid-area: direkt; align-self: end; position: relative; padding-top: 56px; margin-top: 56px; border-top: 1px solid var(--tusche); }
.vorb-form .vorbereiten, .vorb-form .formblatt, .vorb-form .direkt { grid-template-columns: 1fr; gap: 24px; }
.vorb-form .vorbereiten h2, .vorb-form .direkt h2 { margin-bottom: 4px; }
.vorb-form .formblatt > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vorb-form .formblatt > div:first-child .neben { margin-top: 0 !important; }
.vf-vorb[data-zone]::before, .vf-direkt[data-zone]::before { left: calc(-1 * var(--rand)); top: -2px; }
.vf-direkt[data-zone]::before { top: 54px; }
.vf-form[data-zone]::before { left: 0; top: calc(var(--abschnitt) + 30px); }
@media (max-width: 900px) {
  .vorb-form { grid-template-columns: 1fr; grid-template-areas: "vorb" "form" "direkt"; grid-template-rows: auto; }
  .vf-form, .vf-direkt { align-self: start; padding: var(--abschnitt) var(--rand) 0; margin: var(--abschnitt) calc(-1 * var(--rand)) 0; border-left: 0; border-top: 1px solid var(--tusche); }
  .vorb-form .formblatt > div:first-child { display: block; }
}

/* ---------- Handy: Überschriften kompakter, keine Silbentrennung ---------- */
@media (max-width: 640px) {
  h1, h2 { hyphens: manual; -webkit-hyphens: manual; }
  .einstieg h1, .einstieg-schmal h1 { font-size: 35px; letter-spacing: -0.025em; line-height: 1.06; }
  h2 { font-size: 24px; line-height: 1.15; }
  .leistung-kopf, .datenblatt-kopf { flex-direction: column; gap: 10px; }
  .leistung-kopf h2, .leistung-kopf h3, .datenblatt-kopf h3 { max-width: none; }
  /* Hochformate bleiben als Paar nebeneinander */
  .leistung-bilder.nebeneinander, .datenblatt-bilder.gleich, .datenblatt-bilder.hoch { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .leistung-bilder.nebeneinander .mass-h, .datenblatt-bilder.gleich .mass-h, .datenblatt-bilder.hoch .mass-h { font-size: 12px; }
}

/* Schriftfeld: E-Mail nie mitten im Wort trennen */
.sf-mail .sf-wert { overflow-wrap: normal; white-space: nowrap; }
@media (min-width: 641px) and (max-width: 1100px) {
  .schriftfeld { grid-template-columns: 1.25fr 1.35fr 0.8fr; }
}
