/* systemmap · ausfuhr.css
 * ════════════════════════════════════════════════════════════════════
 * Der Ausfuhrkontroll-Desk.
 *
 * BELEGT UND VERMUTET WERDEN DURCH FORM GETRENNT, NICHT DURCH FARBE.
 * Eine durchgezogene Kante heisst: die Guetliste sagt es, hier ist der
 * Wortlaut. Eine gestrichelte Kante heisst: wir schliessen, hier ist
 * die Herleitung. Das ist dieselbe Bedeutung, die Terra im Haus schon
 * traegt (FPGA-Kennzeichnung, Kundenbox) -- etwas, das nicht aus der
 * Quelle stammt. Deshalb ist die gestrichelte Kante terra und die
 * durchgezogene gruen, und es kommt keine sechste Bedeutung dazu.
 *
 * Die breiteste Spalte ist "Was nachzuschlagen ist". Das ist kein
 * Gestaltungseinfall, das ist die Frage der Seite: ein Ingenieur geht
 * mit dieser Spalte heraus, nicht mit der Nummer.
 *
 * Radien nach Hausregel: Belege 2px, Bedienelemente 8px, Panels 18px.
 */

[hidden] { display: none !important; }

/* ── Leiste: Ebene und Regime ─────────────────────────────────────── */
/* Ein Zuschnitt, kein Tor: voreingestellt ist alles an. Wer filtert,
   engt ein -- er schaltet nichts frei. */
.af__leiste {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.af__label {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.af__chips { display: flex; gap: 5px; flex-wrap: wrap; margin-right: 10px; }

/* ── Die Merkliste ────────────────────────────────────────────────── */
.af__regime { margin-top: 20px; }
.af__regime__kopf {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.af__regime__name {
  font-family: var(--serif, Merriweather, Georgia, serif);
  font-size: 16px; font-weight: 700; margin: 0;
}
.af__regime__ort {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--green); color: #FFFFFF;
  border-radius: 2px; padding: 3px 7px;
}
.af__regime__stand { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }

.af__zeilen { display: flex; flex-direction: column; }

.af__z {
  border: 1px solid var(--line); border-left-width: 3px;
  border-left-color: var(--green);
  border-radius: 8px; margin-bottom: 6px; background: var(--panel);
}
/* Gestrichelt heisst geschlossen, nicht belegt. */
.af__z--vermutet { border-left-style: dashed; border-left-color: var(--terra); }

/* Feste Spaltenbreiten waren der Fehler: eine Zelle, die fuer
   "3A001.a.7" bemessen ist, bekam Marken mit vierundzwanzig Zeichen
   dazu und lief ueber ihren Nachbarn. Jetzt sind die Nummernspalte
   nach Inhalt bemessen (max-content), jede Zelle darf schrumpfen
   (min-width: 0) und lange Zeichenketten brechen um, statt zu
   ueberlappen. Die Marken haben eine eigene Zeile. */
.af__kopf {
  display: grid; gap: 4px 14px; width: 100%; text-align: left;
  grid-template-columns: 92px max-content minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: baseline;
  padding: 11px 14px; background: none; border: 0; cursor: pointer;
  font: inherit; color: inherit;
}
.af__kopf > * { min-width: 0; overflow-wrap: anywhere; }
.af__marken {
  grid-column: 2 / -1;
  display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px;
}
.af__kopf:hover { background: var(--hover); }
.af__kopf:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }

.af__ebene {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dim);
}
.af__nummer {
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--green);
}
/* Die Antwort auf die Frage der Seite. Deshalb die breiteste Spalte
   und die einzige in Lesegroesse. */
.af__groesse { font-size: 14px; line-height: 1.4; }
.af__schwelle {
  font-size: 12.5px; line-height: 1.4; color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.af__marke {
  display: inline-block; white-space: nowrap;
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 2px; padding: 2px 5px;
  border: 1px solid var(--line); color: var(--dim);
}
/* "haelt" bleibt stumm -- nur was nicht haelt, meldet sich. */
.af__marke--warn { color: var(--terra); border-color: var(--terra); }
.af__marke--entwurf { color: var(--dim); border-style: dashed; }

/* ── Der Eintrag ──────────────────────────────────────────────────── */
.af__detail {
  border-top: 1px solid var(--line);
  padding: 14px; display: none;
}
.af__detail.is-auf { display: block; }

.af__titel {
  font-family: var(--serif, Merriweather, Georgia, serif);
  font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0 0 12px;
  max-width: 62ch;
}
.af__block { margin: 0 0 12px; max-width: 72ch; }
.af__block__h {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
  display: block; margin-bottom: 4px;
}
.af__block p { margin: 0; font-size: 13.5px; line-height: 1.6; }

/* Ein Zitat ist ein Beleg: scharfe Ecken, und es steht sichtbar
   abgesetzt, damit niemand es mit unserem Text verwechselt. */
.af__zitat {
  border-left: 2px solid var(--green); border-radius: 0 2px 2px 0;
  background: var(--hover); padding: 9px 12px;
  font-size: 13.5px; line-height: 1.6;
}
.af__herleitung {
  border-left: 2px dashed var(--terra); border-radius: 0 2px 2px 0;
  padding: 9px 12px; font-size: 13.5px; line-height: 1.6;
}

/* Die Grenzzeile ist nie eingeklappt. Sie ist der Grund, warum ein
   Fachmann der Seite glaubt. */
.af__grenze {
  border: 1px solid var(--terra); border-radius: 2px;
  padding: 9px 12px; font-size: 13px; line-height: 1.55;
}

.af__quelle {
  font-family: var(--mono); font-size: 11px; line-height: 1.7;
  color: var(--dim); word-break: break-all;
  border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px;
}
.af__quelle a { color: var(--green); }
.af__falle { display: block; margin-top: 6px; color: var(--terra); }

/* ── Ehrliche Luecken ─────────────────────────────────────────────── */
.af__luecken { margin: 0; padding-left: 18px; }
.af__luecken li { font-size: 13.5px; line-height: 1.6; margin-bottom: 12px; }
.af__luecken li:last-child { margin-bottom: 0; }
.af__warum { display: block; color: var(--dim); font-size: 12.5px; margin-top: 3px; }
.af__nr { font-family: var(--mono); font-weight: 700; }

.af__leer { color: var(--dim); font-size: 13.5px; margin: 16px 0 0; }

.af__melde { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; }
.af__melde:empty { display: none; }
.af__melde--schlecht {
  background: var(--st-red, #F6E6E4); color: var(--sttext-red, #9B2C22);
  border-radius: 2px; padding: 8px 10px;
}

@media (max-width: 780px) {
  .af__kopf { grid-template-columns: 92px minmax(0, 1fr); }
  .af__nummer { grid-column: 2; }
  .af__groesse, .af__schwelle, .af__marken { grid-column: 1 / -1; }
}
