.ff-seite { overflow-x: clip; }

.ff-bogen,
.ff-mappe {
  max-width: 900px;
  margin: 8px auto 40px;
  padding: clamp(14px, 3vw, 28px);
  background: var(--ff-bogen);
  color: var(--ff-text);
  border: 2px solid var(--ff-bogen-kante);
  border-top: 8px solid var(--ff-akzent);
  border-radius: 10px;
}

.ff-bogen :focus-visible,
.ff-mappe :focus-visible,
.ff-ergebnis :focus-visible,
.ff-aktionen :focus-visible {
  outline: 3px solid var(--ff-akzent);
  outline-offset: 2px;
}

.ff-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--ff-linie);
}

.ff-kopftext { flex: 1 1 220px; min-width: 0; }

.ff-marke {
  margin: 0;
  font-weight: 800;
  font-size: clamp(20px, 3.6vw, 28px);
  line-height: 1.2;
  color: var(--ff-text);
  overflow-wrap: anywhere;
}

.ff-unterzeile { margin: 2px 0 0; color: var(--ff-leise); font-size: 14px; }

.ff-stempel {
  flex: none;
  padding: 6px 12px;
  border: 3px double var(--ff-stempel);
  border-radius: 6px;
  color: var(--ff-stempel);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-5deg);
}

.ff-hinweise {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-left: 4px solid var(--ff-stempel);
  background: var(--ff-feld);
  color: var(--ff-text);
  border-radius: 0 6px 6px 0;
}

.ff-hinweise p { margin: 4px 0; font-size: 15px; line-height: 1.45; }
.ff-hinweis-stark { font-weight: 700; }
.ff-hinweise-klein { margin-top: 14px; }

.ff-meldung p { margin: 0 0 12px; }
.ff-meldung.ff-fehler,
p.ff-meldung.ff-fehler {
  padding: 10px 14px;
  border: 2px solid var(--ff-stempel);
  border-radius: 6px;
  color: var(--ff-text);
  background: var(--ff-feld);
}
.ff-meldung.ff-fehler p { margin: 0; }
.ff-meldung:empty { display: none; }

.ff-form { display: grid; gap: 18px; }

.ff-zeile { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.ff-feld { min-width: 0; }
.ff-feld-schmal { max-width: 360px; }

fieldset.ff-feld { margin: 0; padding: 0; border: 0; }

.ff-label {
  display: block;
  margin: 0 0 4px;
  padding: 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--ff-text);
}

.ff-hilfe { margin: 0 0 6px; color: var(--ff-leise); font-size: 14px; line-height: 1.45; }

.ff-eingabe {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--ff-feld);
  color: var(--ff-text);
  border: 1px solid var(--ff-feld-rand);
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
}

.ff-text { min-height: 150px; resize: vertical; line-height: 1.5; }

.ff-chips {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.ff-chip { position: relative; }

.ff-chip input {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ff-akzent);
}

.ff-chip label {
  display: block;
  min-height: 44px;
  height: 100%;
  padding: 10px 12px 10px 42px;
  border: 1px solid var(--ff-feld-rand);
  border-radius: 8px;
  background: var(--ff-feld);
  cursor: pointer;
}

.ff-chip input:checked + label {
  border-color: var(--ff-akzent);
  box-shadow: inset 0 0 0 2px var(--ff-akzent);
}

.ff-chip-name { display: block; font-weight: 700; color: var(--ff-text); }
.ff-chip-text { display: block; margin-top: 2px; font-size: 14px; color: var(--ff-leise); line-height: 1.4; }

.ff-ki { margin: 0; }

.ff-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ff-knoepfe .ff-hilfe { margin: 0; }

.ff-start,
.ff-mappe-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid var(--ff-akzent);
  border-radius: var(--radius);
  background: var(--ff-akzent);
  color: var(--ff-akzent-text);
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.ff-start:hover,
.ff-mappe-knopf:hover { box-shadow: 0 0 0 3px var(--ff-linie); }

.ff-start:disabled,
.ff-mappe-knopf:disabled { cursor: progress; opacity: .75; }

.ff-zweit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--ff-feld-rand);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.ff-zweit:hover { border-color: var(--ff-akzent); }

.ff-ergebnis { max-width: 1100px; margin: 0 auto 48px; scroll-margin-top: 80px; }
.ff-ergebnis:focus { outline: none; }

.ff-summe {
  max-width: 900px;
  margin: 0 auto 28px;
  padding: clamp(14px, 3vw, 24px);
  background: var(--ff-bogen);
  color: var(--ff-text);
  border: 2px solid var(--ff-bogen-kante);
  border-radius: 10px;
}

.ff-summe-titel { margin: 0 0 12px; font-size: clamp(20px, 3.4vw, 26px); color: var(--ff-text); }

.ff-summe-werte {
  display: grid;
  gap: 12px 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  margin: 0;
}

.ff-summe-werte dt { color: var(--ff-leise); font-size: 14px; }
.ff-summe-werte dd { margin: 2px 0 0; }

.ff-zahl {
  font-weight: 800;
  font-size: clamp(20px, 3.6vw, 28px);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--ff-text);
}

.ff-gruen { color: var(--ff-akzent); }

.ff-summe-satz { margin: 14px 0 0; line-height: 1.5; }

.ff-leer { max-width: 900px; margin: 0 auto 24px; }

.ff-gruppe { margin: 0 0 32px; }

.ff-gruppe-titel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  font-size: clamp(18px, 3vw, 22px);
}

.ff-anzahl {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 14px;
  background: var(--ff-bogen);
  border: 1px solid var(--ff-bogen-kante);
  color: var(--ff-text);
  font-size: 14px;
}

.ff-gruppe-text { margin: 0 0 14px; color: var(--ink-70); }

.ff-karten {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.ff-karte {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  background: var(--ff-bogen);
  color: var(--ff-text);
  border: 1px solid var(--ff-bogen-kante);
  border-left: 6px solid var(--ff-akzent);
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.ff-gruppe-pruefen .ff-karte { border-left-color: var(--ff-gelb); }
.ff-gruppe-ergaenzend .ff-karte { border-left-color: var(--ff-leise); }

.ff-karte-titel { margin: 0; font-size: 18px; line-height: 1.3; color: var(--ff-text); }

.ff-marken { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }

.ff-marken li {
  padding: 2px 8px;
  border: 1px solid var(--ff-feld-rand);
  border-radius: var(--radius-rund);
  font-size: 13px;
  color: var(--ff-text);
}

.ff-marken .ff-marke-geprueft { border-color: var(--ff-akzent); color: var(--ff-akzent); }
.ff-marken .ff-marke-offen { border-color: var(--ff-stempel); color: var(--ff-stempel); }

.ff-traeger { margin: 0; color: var(--ff-leise); font-size: 14px; }

.ff-daten { display: grid; gap: 8px; margin: 0; }
.ff-daten dt { color: var(--ff-leise); font-size: 13px; }
.ff-daten dd { margin: 0; line-height: 1.45; }

.ff-rechnung { padding: 10px 12px; border-radius: 6px; background: var(--ff-feld); }

.ff-rechnung-satz { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 8px; }

.ff-balken { display: block; width: 100%; height: 12px; border-radius: 3px; }
.ff-balken .b-eigen { fill: var(--ff-eigen); }
.ff-balken .b-foerderung { fill: var(--ff-akzent); }

.ff-grund { margin: 0; padding-left: 10px; border-left: 3px solid var(--ff-gelb); font-size: 14px; line-height: 1.45; }

.ff-details summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ff-text);
}

.ff-details h5 { margin: 10px 0 4px; font-size: 14px; color: var(--ff-text); }
.ff-details ul { margin: 0; padding-left: 20px; }
.ff-details li { margin: 2px 0; line-height: 1.45; }
.ff-details p { margin: 4px 0; line-height: 1.5; }

.ff-leise { color: var(--ff-leise); font-size: 14px; }

.ff-karte-fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--ff-linie);
}

.ff-stand { margin: 0; color: var(--ff-leise); font-size: 13px; }

.ff-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ff-akzent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ff-antrag { display: grid; gap: 4px; }
.ff-antrag .ff-hilfe { margin: 0; }
.ff-antrag .ff-mappe-knopf { width: 100%; }

.ff-ablauf { max-width: 1100px; margin-left: auto; margin-right: auto; }

.ff-schritte {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.ff-schritte li { padding: 16px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-2); }
.ff-schritte h3 { margin: 6px 0; font-size: 18px; }
.ff-schritte p { margin: 0; line-height: 1.5; color: var(--ink-70); }

.ff-nr { font-family: var(--font-mono); font-weight: 700; color: var(--ff-akzent); }

.ff-fallen-titel { font-size: 18px; margin: 0 0 8px; }
.ff-fallen { max-width: 80ch; margin: 0; padding-left: 20px; }
.ff-fallen li { margin: 6px 0; line-height: 1.5; }

.ff-abschnitt { padding: 16px 0; border-top: 1px solid var(--ff-linie); }
.ff-abschnitt:first-of-type { border-top: 0; }
.ff-abschnitt h3 { margin: 0 0 10px; font-size: 18px; color: var(--ff-text); }
.ff-abschnitt h5 { margin: 14px 0 4px; font-size: 15px; color: var(--ff-text); }
.ff-abschnitt p { line-height: 1.55; }

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

.ff-check li {
  position: relative;
  margin: 6px 0;
  padding-left: 28px;
  line-height: 1.45;
}

.ff-check li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ff-feld-rand);
  border-radius: 3px;
}

.ff-quelle {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  border: 1px solid var(--ff-feld-rand);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ff-text);
}

.ff-quelle-ki { border-color: var(--ff-akzent); }

.ff-skizze-titel { margin: 6px 0 0; font-size: 20px; color: var(--ff-text); }
.ff-skizze ol { margin: 0; padding-left: 22px; }
.ff-skizze li { margin: 4px 0; line-height: 1.5; }

.ff-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  max-width: 900px;
  margin: 0 auto 48px;
}

@media (max-width: 480px) {
  .ff-stempel { transform: none; }
  .ff-start, .ff-aktionen .ff-mappe-knopf { width: 100%; }
}

@media print {
  .ff-aktionen { display: none; }
  .ff-mappe { border: 0; padding: 0; }
  .ff-stempel { transform: none; }
}
