/* SFL V1 Oberfläche. Systemschrift, keine externen Schriften (TB-12). Farben nach SFL-Blau als Akzent (CD-02). */
:root {
  --blau: #0b2a6f; --blau-hell: #1e4fb8; --mint: #38c7a8; --rot: #c8102e;
  --grau-1: #f5f6f8; --grau-2: #e3e6eb; --grau-3: #8b93a1; --text: #1b1f27;
  --gut: #1d8a4d; --schlecht: #c8102e; --warn: #b7791f;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text); background: var(--grau-1); }
a { color: var(--blau-hell); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; } h1 small { font-size: .9rem; color: var(--grau-3); font-weight: normal; margin-left: .5rem; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; } h3 { font-size: .95rem; margin: 1rem 0 .4rem; color: var(--grau-3); text-transform: uppercase; letter-spacing: .04em; }
code { background: var(--grau-2); padding: .05rem .3rem; border-radius: 3px; font-size: .9em; }
pre { background: #0f172a; color: #e2e8f0; padding: .75rem; border-radius: 6px; overflow: auto; font-size: .82rem; max-height: 24rem; }

.kopf { display: flex; align-items: center; gap: 1.5rem; padding: .6rem 1.25rem; background: var(--blau); color: #fff; flex-wrap: wrap; }
.marke { font-weight: 700; display: flex; align-items: center; gap: .5rem; } .marke small { font-weight: 400; opacity: .7; margin-left: .3rem; }
.punkt { width: .7rem; height: .7rem; border-radius: 50%; background: var(--mint); display: inline-block; }
.kopf nav { display: flex; gap: .25rem; flex: 1; }
.kopf nav a { color: #fff; padding: .35rem .7rem; border-radius: 5px; opacity: .85; } .kopf nav a.aktiv, .kopf nav a:hover { background: rgba(255,255,255,.15); opacity: 1; text-decoration: none; }
.wer { display: flex; align-items: center; gap: .75rem; font-size: .85rem; opacity: .9; } .wer em { font-style: normal; color: var(--mint); }
main { max-width: 1100px; margin: 1.5rem auto; padding: 0 1.25rem; }
footer { text-align: center; color: var(--grau-3); font-size: .8rem; padding: 2rem 1rem; }

.karte { background: #fff; border: 1px solid var(--grau-2); border-radius: 8px; padding: 1.1rem 1.25rem; margin-bottom: 1.1rem; }
.karte.schmal { max-width: 32rem; margin: 3rem auto; } .karte.hervorgehoben { border-color: var(--mint); background: #f0fbf8; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .9rem; margin-bottom: 1.1rem; }
.kachel { background: #fff; border: 1px solid var(--grau-2); border-radius: 8px; padding: 1rem 1.1rem; color: var(--text); display: flex; flex-direction: column; gap: .2rem; }
.kachel b { font-size: 1.7rem; color: var(--blau); } .kachel span { color: var(--grau-3); font-size: .85rem; } a.kachel:hover { border-color: var(--blau-hell); text-decoration: none; }
.zwei-spalten { display: grid; grid-template-columns: 3fr 2fr; gap: 1rem; } @media (max-width: 800px) { .zwei-spalten { grid-template-columns: 1fr; } }

table { width: 100%; border-collapse: collapse; font-size: .92rem; } table.klein { font-size: .82rem; }
th { text-align: left; color: var(--grau-3); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: .4rem .5rem; border-bottom: 1px solid var(--grau-2); }
td { padding: .5rem; border-bottom: 1px solid var(--grau-1); vertical-align: top; } tr.inaktiv td { color: var(--grau-3); }
td.aktionen { white-space: nowrap; } td.aktionen form { display: inline-block; margin-right: .3rem; }
.leer { color: var(--grau-3); font-style: italic; } .hinweis { color: var(--grau-3); font-size: .9rem; } .fehler { color: var(--schlecht); }
.gut { color: var(--gut); } .schlecht { color: var(--schlecht); }

.formular label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--grau-3); margin-bottom: .75rem; }
.formular input, .formular select, .formular textarea { font: inherit; color: var(--text); padding: .45rem .55rem; border: 1px solid var(--grau-2); border-radius: 5px; background: #fff; }
.formular.zeile, .zeile { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; } .formular.zeile label { margin-bottom: 0; }
button, .knopf { font: inherit; padding: .45rem .9rem; border-radius: 5px; border: 1px solid var(--grau-2); background: #fff; color: var(--text); cursor: pointer; display: inline-block; }
button.primaer { background: var(--blau-hell); border-color: var(--blau-hell); color: #fff; } button.leise { background: transparent; } button.warn { color: var(--schlecht); border-color: #f1c4cb; }
button:hover, .knopf:hover { filter: brightness(.96); text-decoration: none; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 1.4rem; letter-spacing: .1em; background: #fff; border: 1px dashed var(--mint); padding: .6rem 1rem; display: inline-block; border-radius: 6px; }

.status { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--grau-2); }
.status.laeuft { background: #dbeafe; color: #1e40af; } .status.fertig, .status.freigegeben { background: #dcfce7; color: #166534; }
.status.fehler, .status.verworfen { background: #fee2e2; color: #991b1b; } .status.wartend { background: #fef3c7; color: #92400e; }
.status.gate_a, .status.gate_b { background: #e0e7ff; color: #3730a3; }
.stufe { display: inline-flex; width: 1.5rem; height: 1.5rem; align-items: center; justify-content: center; border-radius: 50%; font-size: .78rem; font-weight: 700; color: #fff; background: var(--grau-3); }
.stufe.s1 { background: var(--blau); } .stufe.s2 { background: var(--blau-hell); } .stufe.s3 { background: var(--mint); }
.marke-unsicher { background: #fef3c7; color: #92400e; font-size: .72rem; padding: .05rem .4rem; border-radius: 3px; font-weight: 600; }
.balken { height: .5rem; background: var(--grau-2); border-radius: 999px; overflow: hidden; margin: .6rem 0; } .balken div { height: 100%; background: var(--blau-hell); transition: width .4s; }
.reiter { display: flex; gap: .25rem; } .reiter a { padding: .35rem .7rem; border-radius: 5px; } .reiter a.aktiv { background: #fff; border: 1px solid var(--grau-2); }
.liste { padding-left: 1.2rem; } .liste.klein { font-size: .85rem; color: var(--grau-3); } .liste li { margin-bottom: .35rem; }

details { margin-top: .5rem; } details summary { cursor: pointer; color: var(--grau-3); font-size: .85rem; margin-bottom: .5rem; }

.rueckfaelle { margin: .25rem 0 .75rem 1.1rem; padding: .5rem .75rem .5rem 1.5rem; background: #fff7e6; border: 1px solid #f0c36d; border-radius: 5px; font-size: .9rem; } .rueckfaelle li { margin: .2rem 0; }

fieldset.zeile { border: 1px solid var(--grau-2); border-radius: 5px; padding: .4rem .75rem .6rem; margin: 0 0 .5rem; } fieldset.zeile legend { font-size: .85rem; color: var(--grau-3); padding: 0 .3rem; } label.radio { flex-direction: row; align-items: center; gap: .4rem; }

table.begruendung th { text-align: left; width: 11rem; color: var(--grau-3); font-weight: 600; vertical-align: top; }
