/* Sherpa — house design. --farbe and --akzent come from config/marke.json (basis.html).
   26.9. abends (Rudi): larger type (16 px base), the search page for customers who are not IT people —
   clear verdicts in words and colour, a balance dafür · dagegen · offen per programme, nothing internal. */
:root {
  --text: #1d2430;
  --leise: #5b6576;
  --linie: #d9dee6;
  --flaeche: #f5f7fa;
  --weiss: #ffffff;
  --fehler: #a4262c;
  --gut: #2e6b3a;
  --gut-hell: #e7f2ea;
  --fehler-hell: #f9e7e8;
  --akzent-hell: #f7efe1;
  --farbe-hell: #e9eef5;
  --radius: 6px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--flaeche); line-height: 1.5; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; color: var(--farbe); }
h2 { font-size: 1.05rem; margin: 0 0 .6rem; color: var(--farbe); }
button { font: inherit; cursor: pointer; border: 1px solid var(--farbe); background: var(--farbe);
         color: var(--weiss); border-radius: var(--radius); padding: .4rem .9rem; }
button.klein { font-size: .9rem; padding: .2rem .65rem; }
button.zurueckhaltend { background: transparent; color: var(--farbe); }
button:disabled { opacity: .4; cursor: not-allowed; }
input, select { font: inherit; width: 100%; padding: .4rem .5rem; border: 1px solid var(--linie);
                border-radius: var(--radius); background: var(--weiss); color: var(--text); }
input:focus, select:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
.leise { color: var(--leise); font-size: .92rem; }

/* header, three columns, footer */
.kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; padding: .7rem 1.2rem;
        background: var(--farbe); color: var(--weiss); }
.kopf .marke { font-weight: 700; letter-spacing: .02em; font-size: 1.1rem; white-space: nowrap; }
.kopf .marke-firma { font-weight: 500; opacity: .85; }                       /* „Montaris | Sherpa“: the company lighter, the product bold */
.kopf .marke-trenner { margin: 0 .45rem; font-weight: 300; opacity: .55; }
.kopf nav { display: flex; gap: 1.2rem; flex: 1; }
.kopf a { color: var(--weiss); text-decoration: none; opacity: .85; }
.kopf a.aktiv { opacity: 1; border-bottom: 2px solid var(--akzent); }
.kopf .spaeter { opacity: .45; }
.kopf .konto { font-size: .88rem; opacity: .9; }
.kopf .konto select { width: auto; max-width: min(22rem, 50vw); padding: .1rem .3rem; font-size: .88rem; margin-left: .3rem; }
.kopf .gespeichert { font-size: .82rem; opacity: .75; }
.kopf .testfirma { font-size: .78rem; padding: .1rem .5rem; border-radius: 999px;
                   background: var(--akzent); color: var(--weiss); }
.kopf .zurueckhaltend-hell { background: transparent; border-color: var(--weiss); color: var(--weiss); }
.seite { display: grid; grid-template-columns: 240px minmax(0, 1fr) 340px; gap: 1rem;
         padding: 1rem; align-items: start; }
.spalte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
          padding: 1rem; }
.spalte.rechts { position: sticky; top: 1rem; display: flex; flex-direction: column;
                 max-height: calc(100vh - 2rem); }
.fuss { text-align: center; color: var(--leise); font-size: .8rem; padding: 1rem; }
/* project page: your details | chat | list (Rudi 23.9.); chat and list stay in view */
.seite.vorhaben { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) minmax(320px, 420px); }
.seite.vorhaben .spalte.mitte { position: sticky; top: 1rem; display: flex; flex-direction: column;
                                max-height: calc(100vh - 2rem); }
.seite.vorhaben .spalte.rechts { display: block; overflow-y: auto; }
.zurueck { margin: 0 0 .6rem; font-size: .9rem; }
@media (max-width: 1100px) {
  .seite, .seite.vorhaben { grid-template-columns: minmax(0, 1fr); }
  .spalte.rechts, .seite.vorhaben .spalte.mitte { position: static; max-height: none; }
}

/* form */
.abschnitt { border: 1px solid var(--linie); border-radius: var(--radius); margin: 0 0 1rem;
             padding: .8rem 1rem 1rem; }
.abschnitt legend { font-weight: 600; color: var(--farbe); padding: 0 .3rem; }
.feld { margin: .7rem 0 0; }
.feld-kopf { display: flex; align-items: center; gap: .4rem; margin-bottom: .2rem; }
.feld-kopf label { font-weight: 500; }
.pflicht { color: var(--akzent); }
.frage { width: 1.4rem; height: 1.4rem; padding: 0; border-radius: 50%; font-size: .8rem;
         background: transparent; color: var(--farbe); line-height: 1; }
.herkunft { color: var(--leise); font-size: .8rem; margin-top: .15rem; }
.fehler { color: var(--fehler); font-size: .88rem; margin-top: .2rem; }
.hat-fehler input, .hat-fehler select { border-color: var(--fehler); }
.vorschlag { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .35rem;
             padding: .35rem .5rem; border-left: 3px solid var(--akzent); background: var(--flaeche); }
.feld textarea { font: inherit; width: 100%; padding: .4rem .5rem; border: 1px solid var(--linie);
                 border-radius: var(--radius); background: var(--weiss); color: var(--text); resize: vertical; }
.feld textarea:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
.mehrfach { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.mehrfach .wahl { display: inline-flex; align-items: center; gap: .3rem; font-size: .92rem; }
.mehrfach input { width: auto; }
.kz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.kz label.klein { font-size: .8rem; color: var(--leise); }
.reihe { border-top: 1px dashed var(--linie); padding-top: .6rem; margin-top: .8rem; }
.reihe-kopf { display: flex; justify-content: space-between; align-items: center; }
.block > button { margin-top: .8rem; }

.wartend { border-left: 3px solid var(--akzent); background: var(--flaeche); padding: .5rem .8rem;
           margin: 0 0 1rem; font-size: .9rem; }

/* size class box */
.kmu { border: 1px solid var(--linie); border-left: 4px solid var(--farbe); border-radius: var(--radius);
       padding: .7rem 1rem; margin-bottom: 1rem; background: var(--flaeche); }
.kmu .ergebnis { margin: .1rem 0 .3rem; }
.kmu ul { margin: .2rem 0 .4rem; padding-left: 1.2rem; font-size: .9rem; }
.kmu details { font-size: .9rem; margin-top: .3rem; }
.kmu .klein-titel { font-size: .85rem; font-weight: 600; margin: .4rem 0 0; }
.plakette { display: inline-block; font-size: .75rem; padding: .05rem .5rem; border-radius: 999px;
            border: 1px solid var(--akzent); color: var(--akzent); margin-left: .4rem; }
.status-verbindlich { border-left-color: var(--gut); }
.status-verbindlich .plakette { border-color: var(--gut); color: var(--gut); }

/* list of programs (project page of v1, right column) — kept for the profile page's parts */
.zahlen { font-weight: 600; }
.z-passt { color: var(--gut); }
.z-raus { color: var(--leise); }
.gegenstand { margin-top: .4rem; }
.gruppe-raus, .gruppe-weitere, .gruppe-offen, .gruppe-wartend { margin-top: .6rem; }
.liste .gruppen > details > summary { cursor: pointer; }

/* the one next step above the chat input (app.projekt.naechste_frage) */
.naechste-frage { margin-top: .6rem; padding: .5rem .8rem; border-radius: var(--radius); flex-shrink: 0;
                  border: 1px solid var(--akzent); border-left-width: 4px; background: var(--weiss); }
.naechste-frage .wer { display: block; font-size: .75rem; font-weight: 600; color: var(--akzent); }
.naechste-frage p { margin: .2rem 0; font-size: .92rem; }
.naechste-frage.art-warten, .naechste-frage.art-fertig { border-color: var(--linie); }
.naechste-frage.art-warten .wer, .naechste-frage.art-fertig .wer { color: var(--leise); }
.seite.vorhaben .chat-eingabe { flex-shrink: 0; }

/* uploads */
#unterlagen form { display: flex; flex-direction: column; gap: .5rem; margin: .5rem 0; }
#unterlagen input[type=file] { padding: .3rem; font-size: .85rem; }
.dateien { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-direction: column;
           gap: .6rem; font-size: .9rem; }
.dateien li { border-top: 1px solid var(--linie); padding-top: .5rem; overflow-wrap: anywhere; }
.dateien details ul { padding-left: 1rem; margin: .3rem 0; }

/* chat */
.fokus { font-size: .8rem; color: var(--leise); margin-bottom: .5rem; }
.verlauf { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .7rem;
           min-height: 12rem; padding-right: .2rem; }
.nachricht { background: var(--flaeche); border-radius: 10px; padding: .6rem .85rem; max-width: 100%; }
.nachricht .wer { display: block; font-size: .78rem; font-weight: 600; color: var(--farbe); margin-bottom: .1rem; }
.nachricht p { margin: .25rem 0; font-size: 1rem; }
.nachricht.nutzer { background: var(--farbe-hell); border: 1px solid #d5dde8; margin-left: 2rem;
                    align-self: flex-end; max-width: 85%; }
.nachricht.nutzer p { white-space: pre-wrap; }
.nachricht ul, .nachricht ol { margin: .2rem 0 .4rem; padding-left: 1.2rem; font-size: .95rem; }
.nachricht li { margin: .2rem 0; }
.nachricht .klein-titel { font-size: .85rem; font-weight: 600; margin: .6rem 0 0; }
.nachricht details { font-size: .92rem; margin-top: .35rem; }
.nachricht details summary { cursor: pointer; }
.nachricht .frage { width: 1.2rem; height: 1.2rem; font-size: .7rem; margin-left: .2rem; }
.naechstes { margin-top: .5rem !important; border-top: 1px dashed var(--linie); padding-top: .3rem; }
a.zum-feld { color: var(--farbe); }
.was-fehlt { align-self: flex-start; margin-top: .6rem; }
.chat-eingabe { margin-top: .6rem; display: flex; flex-direction: column; gap: .4rem; }
.chat-eingabe textarea { font: inherit; width: 100%; padding: .5rem .65rem; resize: vertical;
                         border: 1px solid var(--linie); border-radius: var(--radius); }
.chat-eingabe textarea:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
.chat-eingabe .fokus { margin: 0; }
.chat-knoepfe { display: flex; justify-content: flex-end; align-items: center; gap: .6rem; }
.denkt { visibility: hidden; display: inline-flex; align-items: center; gap: .5rem; }
.denkt.htmx-request { visibility: visible; }
.denkt .balken { display: inline-block; width: 7rem; height: .4rem; border-radius: 999px; background: var(--linie);
                 position: relative; overflow: hidden; }
.denkt .balken::after { content: ""; position: absolute; left: -40%; top: 0; width: 40%; height: 100%; border-radius: 999px;
                        background: var(--akzent); animation: laufen 1.3s ease-in-out infinite; }
@keyframes laufen { to { left: 100%; } }
.feld.markiert { outline: 2px solid var(--akzent); outline-offset: 4px; border-radius: var(--radius); }

/* search page (app/suche.py): timeline + conversations | chat | list with balances and cards.
   An app, not a document (Rudi 26.9.): header and the three columns fill the window, every column
   scrolls on its own, the chat input stays at the bottom (body.app from suche.html). */
body.app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
body.app .seite { flex: 1; min-height: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); }
body.app .fuss { padding: .25rem; }
.seite.suche { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(420px, 560px); }
.seite.suche .spalte { position: static; max-height: none; min-height: 0; overflow-y: auto; }
.seite.suche .spalte.mitte { display: flex; flex-direction: column; overflow: hidden; }
.seite.suche .spalte.mitte > #chat { width: 100%; max-width: 62rem; margin: 0 auto; }
.seite.suche .spalte.rechts { display: block; }
.seite.suche .chat-eingabe { flex-shrink: 0; }
@media (max-width: 1100px) {
  body.app { height: auto; overflow: visible; }
  body.app .seite { grid-template-rows: none; }
  .seite.suche { grid-template-columns: minmax(0, 1fr); }
  .seite.suche .spalte { overflow: visible; }
  .seite.suche .spalte.mitte { min-height: 60vh; }
}

/* left: the timeline as a tree (the current path in the house colour, side branches grey; a row per
   depth, a lane per branch), conversations, switch. A dot, its label and a line glide to a new place
   when a branch needs room (sherpa.js sets the start transform, the transition brings it home; the
   lines are redrawn per frame). One label per row; the other stands of a row show theirs on hover,
   painted over the row's label on a white halo (paint-order). A click on a stand swaps the fragments in
   (no page load, Rudi 27.9.): the colours of dots, labels and lines transition, so the path flows to the
   chosen stand (sherpa.js starts each in its old colour). */
.erklaerung { margin: -.3rem 0 .5rem; }
/* .baum: the shared drawing of the timeline and the Förderplan (dots, lines, labels, the glide, the draw-in) */
.baum { display: block; max-width: 100%; margin: 0 0 .6rem; overflow: visible; }
.baum .kante { fill: none; stroke: var(--linie); stroke-width: 2; transition: stroke .45s, stroke-width .45s; }
.baum .kante.weg { stroke: var(--farbe); stroke-width: 2.5; }
.baum .kante.neu { stroke: var(--akzent); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: zeichnen .7s ease-out forwards; }
.baum .stand, .baum .stand rect { transition: transform .55s cubic-bezier(.33, 1, .68, 1); }
.baum .stand circle { fill: var(--weiss); stroke: var(--linie); stroke-width: 2; transform-box: fill-box; transform-origin: center;
                      transition: fill .45s, stroke .45s; }
.baum .stand.weg circle { stroke: var(--farbe); }
.baum .stand.aktuell circle { fill: var(--farbe); stroke: var(--farbe); }
.baum .stand.neu circle { animation: aufgehen .45s .45s ease-out backwards; }
.baum .stand text { font-size: 13px; fill: var(--leise); paint-order: stroke; stroke: var(--weiss); stroke-width: 5px; stroke-linejoin: round;
                    transition: transform .55s cubic-bezier(.33, 1, .68, 1), fill .45s; }
.baum .stand.weg text { fill: var(--text); }
.baum .stand.aktuell text { font-weight: 600; fill: var(--farbe); }
.baum .stand:hover text { fill: var(--farbe); }
.baum .stand:hover circle { stroke: var(--farbe); }
.zeitlinie .stand.still text, .zeitlinie .stand.still rect { display: none; }
.zeitlinie .stand.still:hover text, .zeitlinie .stand.still:hover rect { display: inline; }
.zeitlinie .stand rect.halo { fill: var(--weiss); }          /* covers the row's label while a quiet stand shows its own */
.baum .stand.neu text { animation: aufgehen .45s .6s ease-out backwards; transform-box: fill-box; transform-origin: left center; }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
@keyframes aufgehen { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* the Förderplan in the list (suche.plan, _suche_plan.html): the project as the root, one branch per programme in its
   own colour, the parts it takes under it, a grey dashed branch for parts nothing covers; the badge when two programmes
   cover more than one (Rudi 26.9. spät: „Aufteilung erkannt“). Parts glide between branches when the plan changes. */
.plan-block { border: 1px solid var(--linie); border-left: 4px solid var(--farbe); border-radius: var(--radius); background: var(--farbe-hell);
              padding: .5rem .8rem .45rem; margin-bottom: .8rem; }
.plan-block .klein-titel { margin: 0 0 .1rem; }
.plan-marke { display: inline-block; font-size: .74rem; font-weight: 600; padding: .05rem .55rem; border-radius: 999px; background: var(--akzent);
              color: var(--weiss); margin-left: .45rem; vertical-align: middle; animation: aufgehen .4s .2s ease-out backwards; transform-origin: left center; }
.plan-satz { margin: .15rem 0 0; font-size: .92rem; }
.baum.plan { margin: .25rem 0 .1rem; }
.baum.plan .stand text { fill: var(--text); }
.baum.plan .stand.wurzel text, .baum.plan .stand.programm text { font-weight: 600; }
.baum.plan .stand text.unter { font-size: 11px; font-weight: 400; fill: var(--leise); }
.baum.plan .band { font-size: 11px; font-weight: 500; fill: var(--leise); }
.baum.plan .band.band-wahrscheinlich { fill: var(--gut); }
.baum.plan .band.band-moeglich { fill: #8a6326; }
.baum.plan .stand.wurzel circle { fill: var(--farbe); stroke: var(--farbe); }
.baum.plan .zweig-0 circle { stroke: var(--farbe); }
.baum.plan .zweig-1 circle { stroke: var(--akzent); }
.baum.plan .zweig-2 circle { stroke: #4f7d8c; }
.baum.plan .programm.zweig-0 circle { fill: var(--farbe); }
.baum.plan .programm.zweig-1 circle { fill: var(--akzent); }
.baum.plan .programm.zweig-2 circle { fill: #4f7d8c; }
.baum.plan .kante.zweig-0 { stroke: var(--farbe); stroke-width: 2.5; }
.baum.plan .kante.zweig-1 { stroke: var(--akzent); stroke-width: 2.5; }
.baum.plan .kante.zweig-2 { stroke: #4f7d8c; stroke-width: 2.5; }
.baum.plan .zweig-ohne circle { stroke: var(--linie); fill: var(--flaeche); }
.baum.plan .zweig-ohne text { fill: var(--leise); }
.baum.plan .stand.ohne text { font-style: italic; }
.baum.plan .kante.zweig-ohne { stroke: var(--linie); stroke-dasharray: 3 3; }
.baum.plan .kante.neu { stroke-dasharray: 1; }
.baum.plan a:hover text { text-decoration: underline; }
/* Varianten (Rudi 26.9. spät, _suche_varianten.html): the badge „Varianten erkannt“ comes a moment after the list and
   its dot pulses three times — subtle, it draws the eye without shouting; a click opens the panel (grid rows 0fr → 1fr). */
.varianten { margin: -.2rem 0 .7rem; }
.marke-erkannt { display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-size: .88rem; font-weight: 600; color: var(--farbe);
                 background: var(--weiss); border: 1px solid var(--farbe); border-radius: 999px; padding: .25rem .8rem .25rem .6rem; cursor: pointer;
                 animation: erscheinen .6s 1.3s ease-out backwards; transition: background .2s, box-shadow .2s; }
.marke-erkannt:hover, .marke-erkannt[aria-expanded="true"] { background: var(--farbe-hell); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.marke-erkannt .punkt { width: .55rem; height: .55rem; border-radius: 50%; background: var(--akzent); position: relative; flex: none; }
.marke-erkannt .punkt::after { content: ""; position: absolute; inset: -.3rem; border-radius: 50%; border: 2px solid var(--akzent); opacity: 0;
                               animation: pulsen 1.7s 1.9s ease-out 3; }
.marke-erkannt[aria-expanded="true"] .punkt::after { animation: none; }
/* carried from an earlier stand (geerbt): the badge stays as it is, no entrance and no pulse on every answer */
.marke-erkannt.geerbt { animation: none; }
.marke-erkannt.geerbt .punkt::after { animation: none; }
/* after a decision, or when the prospects are the same: a quiet link, no entrance, no pulse (Rudi 27.9.: the way back stays) */
.marke-erkannt.still { animation: none; border-color: var(--linie); color: var(--leise); font-weight: 500; background: var(--flaeche); }
.marke-erkannt.still .punkt { background: var(--linie); }
.marke-erkannt.still .punkt::after { animation: none; }
.marke-erkannt.still:hover, .marke-erkannt.still[aria-expanded="true"] { color: var(--farbe); border-color: var(--farbe); background: var(--weiss); }
.marke-erkannt .pfeil { font-size: 1.05rem; line-height: 1; color: var(--leise); transition: transform .3s; }
.marke-erkannt[aria-expanded="true"] .pfeil { transform: rotate(90deg); }
@keyframes erscheinen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes pulsen { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }
.varianten-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.33, 1, .68, 1); }
.varianten-panel[hidden] { display: grid; }                          /* collapsed, so it can grow open with a transition */
.varianten-panel[hidden] > .varianten-innen { visibility: hidden; }
.varianten-panel.offen { grid-template-rows: 1fr; }
.varianten-panel > .varianten-innen { overflow: hidden; min-height: 0; }
.varianten-panel.offen > .varianten-innen { margin-top: .5rem; padding: .7rem .9rem .6rem; border: 1px solid var(--farbe); border-left-width: 4px;
                                             border-radius: var(--radius); background: var(--farbe-hell); }
.varianten-titel { margin: 0 0 .2rem; font-size: .95rem; }
.varianten-grund { margin: 0 0 .6rem; font-weight: 600; color: var(--farbe); }
.varianten-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .6rem; margin-bottom: .6rem; }
.variante-karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: .5rem .7rem .4rem; font-size: .92rem; }
.variante-name { margin: 0 0 .2rem; font-weight: 600; }
.variante-nr { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--akzent); margin-right: .2rem; }
.variante-teile { margin: 0 0 .3rem; padding-left: 1.1rem; }
.variante-karte .klein-titel { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); margin: .4rem 0 .1rem; }
.variante-aussichten { list-style: none; margin: 0; padding: 0; }
.variante-aussichten li { margin: .15rem 0; }
.aussicht { display: inline-block; font-size: .74rem; font-weight: 600; padding: 0 .45rem; border-radius: 999px; border: 1px solid var(--linie); color: var(--leise); }
.aussicht-sehr-gut { color: var(--gut); border-color: #bfdcc6; background: var(--gut-hell); }
.aussicht-moeglich { color: #8a6326; border-color: #e3cfa6; background: var(--akzent-hell); }
.variante-warum { margin: .35rem 0 0; font-size: .85rem; }
.varianten-hinweis { margin: .4rem 0 0; font-size: .82rem; }
.leise-knopf { border-color: var(--linie); color: var(--leise); }
.angelegt-marke { margin-left: .4rem; text-decoration: none; color: var(--gut); border-color: #bfdcc6; background: var(--gut-hell); font-weight: 500; }
.angelegt-marke:hover { text-decoration: underline; }
/* on a stand that follows one variant only: the way back to the proposal and to both (Rudi 27.9.) */
.varianten-zurueck { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin: -.2rem 0 .7rem; padding: .45rem .7rem;
                     border: 1px solid var(--linie); border-left: 4px solid var(--akzent); border-radius: var(--radius); background: var(--akzent-hell); font-size: .9rem; }
.varianten-zurueck form { display: inline-flex; align-items: center; gap: .6rem; margin: 0; }
.varianten-zurueck a { color: var(--leise); }
.varianten-zurueck a:hover { color: var(--farbe); }
/* the tab bar of a group of variants (one tab per variant = that stand's fragments; „Vergleich“ swaps the list for the table) */
.reiter { display: flex; gap: .2rem; border-bottom: 2px solid var(--linie); margin: -.2rem 0 .8rem; }
.reiter-knopf { font: inherit; font-size: .9rem; color: var(--leise); background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px;
                padding: .3rem .7rem .35rem; cursor: pointer; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16rem;
                border-radius: 0; transition: color .2s, border-color .3s; }
.reiter-knopf .variante-nr { color: inherit; opacity: .8; }
.reiter-knopf:hover { color: var(--farbe); }
.reiter-knopf.aktiv, .reiter-knopf[aria-pressed="true"] { color: var(--farbe); font-weight: 600; border-bottom-color: var(--akzent); }
.vergleich-knopf { margin-left: auto; }
#liste[data-sicht="vergleich"] .liste-inhalt { display: none; }
#liste[data-sicht="vergleich"] .reiter-knopf.aktiv:not([aria-pressed="true"]) { border-bottom-color: transparent; font-weight: 500; }
#liste:not([data-sicht="vergleich"]) #vergleich { display: none; }
.h2-zusatz { font-weight: 400; font-size: .9rem; }
.vergleich { animation: erscheinen .35s ease-out; }
.vergleich-grund { font-weight: 600; color: var(--farbe); margin: 0 0 .6rem; }
.vergleich-tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.vergleich-tabelle th, .vergleich-tabelle td { text-align: left; vertical-align: top; padding: .4rem .5rem; border-bottom: 1px solid var(--linie); }
.vergleich-tabelle thead th { font-size: .85rem; color: var(--farbe); border-bottom: 2px solid var(--linie); }
.vergleich-tabelle thead th.aktiv, .vergleich-tabelle td.aktiv { background: var(--farbe-hell); }
.vergleich-tabelle tbody th { font-weight: 600; }
.vergleich-tabelle tbody th a { color: var(--text); text-decoration: none; }
.vergleich-tabelle tbody th a:hover { text-decoration: underline; }
.vergleich-tabelle .geber { font-size: .72rem; font-weight: 600; color: var(--leise); text-transform: uppercase; letter-spacing: .03em; }
.vergleich-tabelle tr.unterschied th, .vergleich-tabelle tr.unterschied td { background: #fffbf3; }
.vergleich-tabelle tr.unterschied td.aktiv { background: #fbf3df; }
.unterschied-marke { color: #8a6326; border-color: #e3cfa6; background: var(--akzent-hell); margin-left: .3rem; }
.vergleich-tabelle .zaehler-zeile td { font-size: .88rem; }
.vergleich-hinweis { margin: .5rem 0 0; font-size: .82rem; }
/* the possible amount on a programme that comes into question (suche.hoehe) */
.prog .hoehe { margin: -.1rem 0 .35rem; font-size: .9rem; }
.prog .hoehe .hoehe-titel { font-weight: 600; color: var(--farbe); }
.prog .hoehe .hoehe-betrag { color: var(--gut); font-weight: 600; }
.prog .hoehe-belege { font-size: .85rem; margin-top: .05rem; }
.prog .hoehe-belege > summary { cursor: pointer; }
.prog .hoehe-belege > summary:hover { color: var(--farbe); }
.prog .hoehe-belege ul { margin: .25rem 0 .1rem; padding-left: 1.1rem; }
.prog .hoehe-belege li { margin: .15rem 0; }
.prog .hoehe-belege q { quotes: "„" "“"; }
.neu-knopf { display: inline-block; font-size: .92rem; margin: 0 0 .5rem; color: var(--farbe); text-decoration: none;
             border: 1px solid var(--linie); border-radius: var(--radius); padding: .3rem .7rem; }
.neu-knopf:hover { border-color: var(--farbe); background: var(--farbe-hell); }
.gespraeche { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .95rem; }
.gespraeche li { margin: .2rem 0; padding: .3rem .5rem; border-radius: var(--radius); overflow-wrap: anywhere; }
.gespraeche li.aktiv { background: var(--farbe-hell); }
.gespraeche li.aktiv a { font-weight: 600; }
.gespraeche a { color: var(--text); text-decoration: none; }
.gespraeche a:hover { text-decoration: underline; }
.gespraeche .leise { display: block; font-size: .8rem; }
.profil-block { border-top: 1px solid var(--linie); padding-top: .6rem; }
.schalter { display: flex; align-items: center; gap: .55rem; font-size: .95rem; cursor: pointer; margin: .5rem 0 .2rem; }
.schalter input { position: absolute; opacity: 0; width: 0; height: 0; }
.schalter .knopf { flex: none; width: 2.4rem; height: 1.3rem; border-radius: 999px; background: var(--linie); position: relative;
                   transition: background .2s; }
.schalter .knopf::after { content: ""; position: absolute; top: .15rem; left: .15rem; width: 1rem; height: 1rem; border-radius: 50%;
                          background: var(--weiss); transition: left .2s; }
.schalter input:checked + .knopf { background: var(--gut); }
.schalter input:checked + .knopf::after { left: 1.25rem; }
.schalter input:disabled + .knopf { opacity: .5; }
.schalter input:focus-visible + .knopf { outline: 2px solid var(--akzent); outline-offset: 1px; }
.profil-frage { margin-top: .5rem; padding: .6rem .8rem; border: 1px solid var(--akzent); border-left-width: 4px;
                border-radius: var(--radius); background: var(--akzent-hell); font-size: .92rem; }
.profil-frage p { margin: 0 0 .3rem; }
.profil-frage ul { margin: .2rem 0 .4rem; padding-left: 1.1rem; }
.profil-frage[hidden] { display: none; }

/* middle: the chat */
#chat { display: flex; flex-direction: column; min-height: 0; flex: 1; }
#chat h2 { flex: none; font-size: 1.15rem; }
.nachricht.zerlegung ul { margin: .15rem 0 .4rem; padding-left: 1.2rem; font-size: .95rem; }
.nachricht.zerlegung ul.bestandteile > li { margin: .3rem 0; }
.nachricht.zerlegung ul.bestandteile > li > strong { font-size: 1.02rem; }
.nachricht.zerlegung ul ul { font-size: .92rem; margin: .1rem 0 .2rem; }
button.entfernen { padding: 0 .4rem; margin-left: .3rem; font-size: .8rem; line-height: 1.3; vertical-align: middle;
                   border-color: var(--linie); color: var(--leise); }
button.entfernen:hover { border-color: var(--fehler); color: var(--fehler); }
.fest-marke { display: inline-block; font-size: .72rem; padding: 0 .4rem; border-radius: 999px; border: 1px solid var(--linie);
              color: var(--leise); margin-left: .2rem; vertical-align: middle; }
.nachricht.rueckfrage { border-left: 4px solid var(--akzent); background: var(--akzent-hell); }
.nachricht.rueckfrage .wer { color: #8a6326; }
.nachricht .frage-text { font-size: 1.08rem; font-weight: 500; margin: .35rem 0; }
.nachricht .ergebnis { font-size: .88rem; color: var(--leise); margin: 0 0 .2rem; }
.nachricht .darum { font-size: .95rem; margin: .1rem 0 .35rem; }
.nachricht .darum-titel { font-weight: 600; color: #8a6326; }
.nachricht details.warum { margin-top: .4rem; }
.nachricht details.warum p { font-size: .9rem; margin: .3rem 0 0; }
/* the answer to a question the user typed instead of an answer (app.suche._gegenfrage): quotes as in the programme's questions */
.nachricht.gegenantwort { border: 1px solid var(--linie); border-left: 4px solid var(--farbe); background: var(--weiss); }
.nachricht.gegenantwort .wer a { color: var(--farbe); }
.nachricht.gegenantwort .belege-liste { margin: .3rem 0 0; padding-left: 1.4rem; font-size: .85rem; color: var(--leise); }
.nachricht.gegenantwort .belege-liste q { quotes: "„" "“"; }
.nachricht.gegenantwort .fundstelle { font-size: .8rem; }
.nachricht.gegenantwort p.leise { font-size: .8rem; margin-top: .45rem; }
.nachricht.konflikt { border-left: 4px solid var(--fehler); background: var(--fehler-hell); }
.nachricht.konflikt .wer { color: var(--fehler); }
/* the variants decision as the chat's open question (27.9. abends): the alternatives in two lines each, the buttons wrap */
.nachricht.varianten-frage ol.varianten-kurz { margin: .3rem 0 .5rem; padding-left: 1.3rem; }
.nachricht.varianten-frage ol.varianten-kurz li { margin: .3rem 0; line-height: 1.35; }
.nachricht.varianten-frage ol.varianten-kurz strong { font-size: 1rem; }
.nachricht.varianten-frage .chat-knoepfe { flex-wrap: wrap; row-gap: .4rem; }
.nachricht.varianten-frage p.leise { font-size: .8rem; margin-top: .45rem; }
.chat-knoepfe.links { justify-content: flex-start; margin-top: .3rem; }
.hinweis { margin: -.2rem .3rem 0; font-size: .85rem; }
/* what a step moved: one line, the programmes folded under it (Rudi 26.9. spät: the block cluttered the chat) */
.bewegung { margin: -.2rem 0 0 .3rem; padding: .3rem .7rem; border-left: 3px solid var(--linie); font-size: .92rem; }
.bewegung > summary { cursor: pointer; font-size: .88rem; color: var(--text); }
.bewegung > summary:hover { color: var(--farbe); }
.bewegung .wer { font-size: .78rem; font-weight: 600; color: var(--leise); }
.bewegung ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.bewegung li { margin: .1rem 0; }
.bewegung a { color: var(--farbe); }
/* a cut quote opens whole on click (sherpa.js: .voll-umschalter[data-voll]) */
.voll-umschalter { cursor: pointer; border-bottom: 1px dotted var(--leise); }
.voll-umschalter:hover, .voll-umschalter:focus-visible { color: var(--text); border-bottom-color: var(--farbe); outline: none; }
.voll-umschalter.offen { border-bottom-style: solid; }
.status-wort { font-weight: 600; }
.status-wort.antragsreif, .status-wort.passt { color: var(--gut); }
.status-wort.partner { color: var(--farbe); }
.status-wort.blockiert, .status-wort.showstopper { color: var(--fehler); }
.status-wort.unwahrscheinlich, .status-wort.gefiltert, .status-wort.nicht_geprueft { color: var(--leise); }

/* right: the list */
.liste-kopf { border-radius: var(--radius); padding: .1rem 0 .3rem; margin-bottom: .6rem; font-size: .92rem; }
.liste-kopf p { margin: .4rem 0 0; }
/* what the four words mean (Rudi 26.9. spät: blockiert vs. passt nicht), folded under the counts */
.legende { margin-top: .35rem; font-size: .86rem; }
.legende > summary { cursor: pointer; }
.legende dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .15rem .6rem; margin: .35rem 0 0; }
.legende dt { white-space: nowrap; }
.legende dd { margin: 0; }
.legende p { margin: .4rem 0 0; }
.zahlen-reihe { display: flex; flex-wrap: wrap; gap: .4rem; }
/* the counts are filters: a click shows only that group (sherpa.js sets data-filter on #liste) */
.zahl-marke { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .9rem; border: 1px solid var(--linie);
              background: var(--flaeche); color: var(--leise); cursor: pointer; font: inherit; font-size: .9rem; }
.zahl-marke strong { font-size: 1rem; }
.zahl-marke.passt { background: var(--gut-hell); border-color: #bfdcc6; color: var(--gut); }
.zahl-marke.antragsreif { background: var(--gut); border-color: var(--gut); color: var(--weiss); }
/* „als Partner möglich“ (organisation profiles, 28.9.): the house colour, neither green nor red */
.zahl-marke.partner { background: var(--farbe-hell); border-color: #c5d0df; color: var(--farbe); }
.zahl-marke.blockiert { background: var(--fehler-hell); border-color: #ecc4c6; color: var(--fehler); }
.zahl-marke:hover { filter: brightness(.95); }
.zahl-marke[aria-pressed="true"] { outline: 2px solid var(--farbe); outline-offset: 1px; }
#liste[data-filter] .zahl-marke:not([aria-pressed="true"]) { opacity: .55; }
#liste[data-filter="frage"] .gruppe:not(.g-antragsreif):not(.g-passt), #liste[data-filter="frage"] .g-raus,
#liste[data-filter="antragsreif"] .gruppe:not(.g-antragsreif), #liste[data-filter="antragsreif"] .g-raus,
#liste[data-filter="blockiert"] .gruppe:not(.g-blockiert):not(.g-showstopper), #liste[data-filter="blockiert"] .g-raus,
#liste[data-filter="partner"] .gruppe:not(.g-partner), #liste[data-filter="partner"] .g-raus,
#liste[data-filter="raus"] .gruppe { display: none; }
#liste[data-filter] .filter-hinweis { display: block; }
.filter-hinweis { display: none; margin: .4rem 0 0; }
.filter-hinweis button { font-size: .85rem; padding: .1rem .5rem; }
.zuordnung-block { border: 1px solid var(--linie); border-left: 4px solid var(--farbe); border-radius: var(--radius);
                   background: var(--farbe-hell); padding: .5rem .8rem .3rem; margin-bottom: .8rem; }
.zuordnung-block .klein-titel { margin: 0 0 .2rem; }
.zuordnung { padding-left: 1rem; margin: .2rem 0 .4rem; font-size: .95rem; }
.zuordnung li { margin: .15rem 0; }
.zuordnung a { color: var(--farbe); }
.liste .klein-titel { font-size: .95rem; font-weight: 600; margin: 1rem 0 .35rem; color: var(--farbe); }
.liste .klein-titel .leise { font-weight: 400; font-size: .85rem; }
.progs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.prog { border: 1px solid var(--linie); border-radius: 8px; padding: .6rem .85rem .5rem; background: var(--weiss); font-size: .95rem; }
.prog.antragsreif { border-left: 5px solid var(--gut); }
.prog.passt { border-left: 5px solid var(--akzent); }
.prog.partner { border-left: 5px solid var(--farbe); }
.prog.blockiert, .prog.showstopper { border-left: 5px solid var(--fehler); }
.prog.unwahrscheinlich, .prog.gefiltert, .prog.nicht_geprueft { color: var(--leise); background: var(--flaeche); border-left: 5px solid var(--linie); }
.prog.kurz { padding: .35rem .7rem .3rem; font-size: .9rem; }
.prog.kurz .kurz-zeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; }
.prog.kurz .prog-name { display: inline; font-size: .95rem; margin: 0; }
.prog.kurz .grund { margin: .1rem 0 .15rem; }
.prog.kurz details.belege { margin-top: 0; font-size: .82rem; }
.prog-kopf { display: flex; justify-content: space-between; align-items: center; gap: .5rem; line-height: 1.4; }
.prog .geber { font-size: .75rem; font-weight: 600; color: var(--farbe); text-transform: uppercase; letter-spacing: .03em; }
.prog.unwahrscheinlich .geber, .prog.gefiltert .geber, .prog.nicht_geprueft .geber { color: var(--leise); }
.prog-name { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin: .05rem 0 .2rem; }
.status-marke { flex: none; font-size: .78rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; white-space: nowrap; }
.status-marke.antragsreif { background: var(--gut); color: var(--weiss); }
.status-marke.passt { background: var(--akzent-hell); color: #8a6326; border: 1px solid #e3cfa6; }
.status-marke.partner { background: var(--farbe-hell); color: var(--farbe); border: 1px solid #c5d0df; }
.status-marke.blockiert, .status-marke.showstopper { background: var(--fehler-hell); color: var(--fehler); border: 1px solid #ecc4c6; }
.status-marke.unwahrscheinlich, .status-marke.gefiltert, .status-marke.nicht_geprueft { background: var(--flaeche); color: var(--leise); border: 1px solid var(--linie); }
.marken { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .3rem; }
/* how well every part fits: Jev's p as the length of a bar, the band as the word — no number */
.passungen { display: flex; flex-direction: column; gap: .2rem; margin: .1rem 0 .45rem; }
.passung { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.passung .pegel { flex: none; width: 6.5rem; height: .55rem; border-radius: 999px; background: var(--linie); overflow: hidden; }
.passung .pegel > span { display: block; height: 100%; border-radius: 999px; background: var(--leise); }
.passung.band-wahrscheinlich .pegel > span { background: var(--gut); }
.passung.band-moeglich .pegel > span { background: var(--akzent); }
.passung.band-wahrscheinlich .passung-wort { color: var(--gut); }
.passung.band-moeglich .passung-wort { color: #8a6326; }
.passung.band-unwahrscheinlich .passung-wort { color: var(--leise); }
.passungen .marke-klein { align-self: flex-start; margin-top: .1rem; }
.marke-klein { font-size: .75rem; color: var(--leise); border: 1px solid var(--linie); border-radius: 999px;
               padding: 0 .5rem; white-space: nowrap; }
.marke-klein.band-wahrscheinlich { color: var(--gut); border-color: #bfdcc6; background: var(--gut-hell); }
.marke-klein.band-moeglich { color: #8a6326; border-color: #e3cfa6; background: var(--akzent-hell); }
.prog-inhalt p { margin: .3rem 0; }
.bilanz { margin: .2rem 0 .4rem; }
/* „Warum?“: the balance and the programme text, folded (Rudi 26.9. abends) */
.prog details.warum { margin: .3rem 0 .1rem; border-top: 1px dashed var(--linie); padding-top: .3rem; }
.prog details.warum > summary { cursor: pointer; color: var(--farbe); font-weight: 600; font-size: .9rem; padding: .15rem 0; }
.prog details.warum > summary:hover { text-decoration: underline; }
.prog details.warum[open] > summary { margin-bottom: .2rem; }
.bilanz-titel { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: .45rem 0 .1rem; }
.bilanz-titel.dafuer { color: var(--gut); }
.bilanz-titel.dagegen { color: var(--fehler); }
.bilanz-titel.offen { color: #8a6326; }
.bilanz ul { list-style: none; margin: 0; padding: 0; }
.bilanz li { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); gap: .15rem; margin: .15rem 0; font-size: .92rem; line-height: 1.4; }
.bilanz .zeichen { font-weight: 700; text-align: center; }
.bilanz .dafuer .zeichen { color: var(--gut); }
.bilanz .dagegen .zeichen { color: var(--fehler); }
.bilanz .offen .zeichen { color: #8a6326; }
.bilanz .art-hinweis .zeichen, .bilanz .art-auch .zeichen { color: var(--leise); }
.bilanz q { quotes: "„" "“"; color: var(--leise); }
.bilanz .mehr { font-style: italic; }
.bilanz .quelle, .karte a.fundstelle { font-size: .78rem; color: var(--leise); text-decoration: underline dotted; white-space: nowrap; }
.bilanz .quelle:hover, .karte a.fundstelle:hover { color: var(--farbe); }
.prog .zusammenfassung { margin: .4rem 0 .3rem; padding: .45rem .7rem; background: var(--flaeche); border-radius: var(--radius); font-size: .95rem; }
.prog .zusammenfassung .kurz-titel { font-weight: 700; color: var(--farbe); margin-right: .2rem; }
.prog .grund { margin: .2rem 0; }
.prog details.belege, .prog details.dokumente { border: 0; padding: 0; margin-top: .4rem; font-size: .88rem; }
.prog details.belege > summary, .prog details.dokumente > summary { color: var(--leise); cursor: pointer; }
.prog details.belege > summary:hover, .prog details.dokumente > summary:hover { color: var(--farbe); }
/* the originals („Förderdokumente“, suche.karte.dokumente) */
.dok-liste { list-style: none; margin: .3rem 0; padding: 0; }
.dok { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .1rem .6rem; margin: .25rem 0; align-items: baseline; }
.dok-rolle { font-size: .75rem; font-weight: 600; color: var(--farbe); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.dok.leise .dok-rolle { color: var(--leise); }
.dok-titel { overflow-wrap: anywhere; }
.dok-links, .dok-hinweis { grid-column: 2; font-size: .82rem; }
.dok-links a { color: var(--farbe); margin-right: .6rem; }
.band-wahrscheinlich { color: var(--gut); }
.band-moeglich { color: #8a6326; }
.band-unwahrscheinlich { color: var(--leise); }
.gruppen { margin-top: 1rem; }
.gruppe-raus > summary { font-weight: 600; color: var(--leise); padding: .3rem 0; }

/* questions about a programme (suche.programmfrage): the customer's questions, the answer with its quotes */
.fragen { margin-top: .3rem; font-size: .9rem; }
.fragen .frage-antwort { margin: .35rem 0; padding: .4rem .6rem; border-left: 3px solid var(--farbe); background: var(--farbe-hell); border-radius: 0 var(--radius) var(--radius) 0; }
.fragen .frage-antwort p { margin: .15rem 0; }
.fragen .wer { display: block; font-size: .75rem; font-weight: 600; color: var(--leise); }
.fragen .frage-text { font-weight: 500; }
.fragen .belege-liste { margin: .3rem 0 0; padding-left: 1.4rem; font-size: .85rem; color: var(--leise); }
.fragen .belege-liste q { quotes: "„" "“"; }
.fragen details.frage-stellen > summary { cursor: pointer; color: var(--leise); font-size: .88rem; }
.fragen details.frage-stellen > summary:hover { color: var(--farbe); }
.fragen form { margin: .3rem 0 .1rem; }
.fragen form input[name=frage] { font-size: .92rem; }
.fragen .chat-knoepfe { margin-top: .3rem; }
.fragen details.frage-stellen > .leise { margin: .2rem 0 0; font-size: .8rem; }

/* the card „Warum“ — the evidence layer */
.karte { margin-top: .4rem; padding: .5rem .7rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); color: var(--text); }
.karte p { margin: .35rem 0; font-size: .9rem; }
.karte q { quotes: "„" "“"; }
.karte .fundstelle { color: var(--leise); font-size: .8rem; }
.karte .fest { color: var(--fehler); }
.karte ul { margin: .2rem 0 .4rem; padding-left: 1.1rem; font-size: .9rem; }
.karte li { margin: .25rem 0; }
.karte .klein-titel { font-size: .85rem; font-weight: 600; margin: .6rem 0 .1rem; color: var(--farbe); }
.karte details.erfuellt { font-size: .9rem; margin: .4rem 0; }
.karte details.erfuellt > summary { cursor: pointer; }
.karte .karte-kopf { font-size: 1rem; }
/* „stimmt nicht?“: a quiet inline button, the small form opens below it (sherpa.js) */
.feedback { display: inline; font-size: .8rem; margin-left: .3rem; }
.feedback-knopf { font: inherit; font-size: .8rem; padding: 0; border: 0; background: none; color: var(--leise);
                  text-decoration: underline dotted; cursor: pointer; white-space: nowrap; }
.feedback-knopf:hover { color: var(--farbe); }
.feedback form[hidden] { display: none; }
.feedback form { display: flex; gap: .3rem; margin: .3rem 0; }
.feedback input[name=grund] { font-size: .85rem; padding: .15rem .4rem; }
.karte .zeile { margin: .35rem 0; font-size: .9rem; }
.gemeldet { margin-left: .3rem; }
button.antrag { margin-left: .5rem; }

/* the application (app/antrag.py): overview | document | chat — the same app layout as the search; the middle column
   is the document the customer will paste, so it reads like paper: measured line length, calm type, the grounding marks
   as light underlines per sentence (Vorschlag · nicht belegt · Widerspruch), placeholders as gaps. */
.seite.antrag { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr) minmax(320px, 420px); }
.seite.antrag .spalte { position: static; max-height: none; min-height: 0; overflow-y: auto; }
.seite.antrag .spalte.mitte { background: var(--flaeche); padding: 1.2rem 1.6rem; }
.seite.antrag .spalte.mitte > #dokument { max-width: 46rem; margin: 0 auto; }
.seite.antrag .spalte.rechts { display: flex; flex-direction: column; }
.seite.antrag .antrag-verlauf { min-height: 8rem; }
.seite.antrag .chat-eingabe { flex-shrink: 0; }
@media (max-width: 1100px) { .seite.antrag { grid-template-columns: minmax(0, 1fr); } .seite.antrag .spalte { overflow: visible; } }
.seite.antrag-plan { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) minmax(300px, 400px); }
.plan-gliederung { padding-left: 1.3rem; font-size: .95rem; } .plan-gliederung li { margin: .3rem 0; }
.fehlt-marke { color: #8a6326; font-weight: 700; }
.fortschritt { margin: .3rem 0 .8rem; padding: .5rem .7rem; background: var(--flaeche); border-radius: var(--radius); font-size: .88rem; }
.fs-zeile { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr) 3.2rem; align-items: center; gap: .5rem; margin: .15rem 0; }
.fs-balken { height: .5rem; border-radius: 999px; background: var(--linie); overflow: hidden; }
.fs-balken > span { display: block; height: 100%; background: var(--farbe); border-radius: 999px; transition: width .5s; }
.fs-zahl { text-align: right; color: var(--leise); }
.ue-block { margin: .5rem 0; border-top: 1px solid var(--linie); padding-top: .4rem; font-size: .92rem; }
.ue-block > summary { cursor: pointer; font-weight: 600; color: var(--farbe); }
.ue-block ul.angaben, .ue-block ul.beilagen { list-style: none; margin: .3rem 0; padding: 0; }
.angabe, .beilage { margin: .3rem 0; padding: .2rem 0; border-bottom: 1px dashed var(--linie); }
.angabe-label, .beilage-label { font-weight: 500; }
.angabe-form { display: flex; gap: .3rem; margin: .25rem 0 .1rem; }
.angabe-form input { font-size: .9rem; padding: .2rem .4rem; }
.beilage-aktion { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; margin-top: .2rem; }
.beilage-aktion form { display: flex; gap: .3rem; align-items: center; }
.beilage-aktion input[type=file] { font-size: .8rem; padding: .1rem; width: auto; max-width: 13rem; }
.leise-knopf { border-color: var(--linie); color: var(--leise); }
table.kosten { width: 100%; border-collapse: collapse; font-size: .88rem; margin: .3rem 0; }
table.kosten th, table.kosten td { text-align: left; vertical-align: top; padding: .25rem .3rem; border-bottom: 1px solid var(--linie); }
table.kosten .zahl { text-align: right; white-space: nowrap; }
table.kosten tr.vorschlag-zeile td { background: var(--akzent-hell); }
.position-form { display: grid; grid-template-columns: minmax(0, 1fr) 7rem; gap: .3rem; margin-top: .4rem; }
.position-form select, .position-form button { grid-column: span 1; }
.position-form input, .position-form select { font-size: .88rem; padding: .25rem .4rem; }
.uebertragung li { margin: .25rem 0; }
.export a.klein-link { font-size: .9rem; color: var(--farbe); }
.dok-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-bottom: .6rem; }
.dok-kopf h2 { margin: 0; }
.legende span { margin-right: .7rem; white-space: nowrap; }
.dok-abschnitt { background: var(--weiss); border: 1px solid var(--linie); border-radius: 8px; padding: 1rem 1.4rem 1.1rem; margin: 0 0 .9rem; }
.dok-titel { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .8rem; }
.dok-titel h3 { margin: 0 0 .2rem; font-size: 1.12rem; color: var(--farbe); }
.dok-titel h3 .nr { color: var(--akzent); margin-right: .2rem; }
.dok-werkzeug { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .8rem; }
.dok-werkzeug form { display: inline; }
.dok-abschnitt details.vorgabe { margin: .1rem 0 .4rem; font-size: .85rem; }
.dok-abschnitt details.vorgabe > summary { cursor: pointer; }
.dok-text { font-size: 1.02rem; line-height: 1.6; hyphens: auto; }
.dok-text p { margin: 0 0 .7rem; }
.dok-text ul { margin: 0 0 .7rem 1.2rem; padding: 0; }
.erd { text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: help; }
.erd.vorschlag { text-decoration-color: #9db7d8; }
.erd.behauptung { text-decoration-color: #e0a800; background: #fffaea; }
.erd.widerspricht { text-decoration-color: #c0392b; background: var(--fehler-hell); }
.erd.platzhalter { text-decoration-color: #e0a800; }
.luecke { background: #fff1c2; border-bottom: 2px solid #e0a800; padding: 0 2px; }
.satz-liste { margin-top: .4rem; font-size: .88rem; } .satz-liste ul { padding-left: 1.1rem; } .satz-liste li { margin: .3rem 0; }
.satz-liste form.inline { display: inline; margin-left: .3rem; }
.dok-hinweis { padding: .6rem .9rem; border-left: 3px solid var(--akzent); background: var(--akzent-hell); border-radius: 0 var(--radius) var(--radius) 0; margin: .4rem 0 .9rem; }
.dok-pruefung { background: var(--weiss); border: 1px solid var(--linie); border-radius: 8px; padding: .9rem 1.3rem; margin-top: 1rem; font-size: .92rem; }
.dok-pruefung ul.krit { padding-left: 1.1rem; } .dok-pruefung li { margin: .3rem 0; } .dok-pruefung q { quotes: "„" "“"; }
.dok-pruefung .klein-titel.dagegen { color: var(--fehler); } .dok-pruefung .klein-titel.offen { color: #8a6326; }
.offener-punkt { margin: .4rem 0; padding: .35rem 0; border-top: 1px dashed var(--linie); }
.offener-punkt form { display: flex; flex-direction: column; gap: .3rem; }
.offener-punkt input, .offener-punkt textarea { font: inherit; font-size: .92rem; padding: .3rem .45rem; border: 1px solid var(--linie); border-radius: var(--radius); width: 100%; }
.offener-punkt .chat-knoepfe { margin: 0; }
.angaben-hier { margin: .3rem 0; }
.kopiert { background: var(--gut) !important; border-color: var(--gut) !important; color: var(--weiss) !important; }
/* the way into the application from the list and the card */
.antrag-link { margin: .1rem 0 .35rem; font-size: .92rem; }
a.antrag-knopf { display: inline-block; padding: .2rem .7rem; border-radius: var(--radius); border: 1px solid var(--farbe); color: var(--farbe);
                 text-decoration: none; font-weight: 600; font-size: .88rem; }
a.antrag-knopf.reif { background: var(--gut); border-color: var(--gut); color: var(--weiss); }
a.antrag-knopf:hover { background: var(--farbe); color: var(--weiss); }
.antraege li { margin: .2rem 0; }

/* login (anmelden.html) and the header's „Abmelden“ (app.auth, 28.9.) */
.kopf .abmelden { margin-left: .5rem; font-size: .82rem; text-decoration: underline; opacity: .8; }
main.anmelden { display: grid; place-items: center; min-height: calc(100vh - 8rem); padding: 1rem; }
.anmelde-karte { width: min(380px, 100%); background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
                 padding: 1.4rem 1.6rem 1.6rem; display: grid; gap: .7rem; }
.anmelde-karte h1 { margin: 0; }
.anmelde-karte label { display: grid; gap: .25rem; font-weight: 500; }
.anmelde-karte .fehler { margin: 0; }

/* feedback of the testers (sherpa.js fbStart, app.feedback, 28.9.): the pencil that follows the mouse, the
   outline of the block it belongs to, the box, the page button bottom right */
#fb-stift { position: fixed; z-index: 60; width: 24px; height: 24px; padding: 0; line-height: 1; font-size: .95rem; border-radius: 50%;
            background: var(--akzent); border-color: var(--akzent); color: var(--weiss); box-shadow: 0 1px 4px rgba(0,0,0,.25); opacity: .85; }
#fb-stift:hover { opacity: 1; }
.fb-ziel { outline: 2px dashed var(--akzent); outline-offset: 2px; }
#fb-seite { position: fixed; right: 16px; bottom: 14px; z-index: 60; font-size: .85rem; padding: .3rem .8rem; border-radius: 999px;
            background: var(--akzent); border-color: var(--akzent); color: var(--weiss); box-shadow: 0 1px 4px rgba(0,0,0,.25); opacity: .9; }
#fb-box { position: fixed; z-index: 70; width: 330px; background: var(--weiss); border: 1px solid var(--akzent); border-radius: var(--radius);
          box-shadow: 0 4px 18px rgba(0,0,0,.2); padding: .7rem .8rem .8rem; display: grid; gap: .5rem; }
#fb-box[hidden], #fb-stift[hidden] { display: none; }        /* the author display beats the hidden attribute otherwise */
#fb-box .fb-wozu { display: grid; gap: .1rem; font-size: .82rem; }
#fb-box .fb-titel { font-weight: 600; color: var(--farbe); }
#fb-box .fb-auszug { color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fb-box textarea { font: inherit; font-size: .92rem; width: 100%; padding: .4rem .5rem; border: 1px solid var(--linie); border-radius: var(--radius); resize: vertical; }
#fb-box .fb-knoepfe { display: flex; align-items: center; gap: .5rem; }
#fb-box .fb-abbrechen { background: transparent; color: var(--farbe); border-color: var(--linie); }

/* the admins' overview (feedback.html) */
main.rueckmeldungen { max-width: 900px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.rueckmeldung { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: .7rem .9rem; margin: 0 0 .7rem; }
.rueckmeldung.erledigt { opacity: .55; }
.rueckmeldung.erledigt .rm-text { text-decoration: line-through; }
.rm-kopf { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; font-size: .82rem; color: var(--leise); }
.rm-konto { font-weight: 600; color: var(--farbe); }
.rm-url { color: var(--leise); }
.rm-form { margin-left: auto; }
.rm-bezug { font-size: .9rem; margin: .3rem 0 0; }
.rm-auszug { margin: .3rem 0; padding: .2rem .6rem; border-left: 3px solid var(--linie); color: var(--leise); font-size: .85rem; }
.rm-text { margin: .3rem 0 0; white-space: pre-wrap; }
