/* sBroker-Dashboard · Grundgerüst. Bewusst schlicht: erst Funktion, das Design kommt in Phase 5. */
:root { --rand: #d9dce1; --leise: #6b7280; --rot: #c0392b; --gruen: #1f7a4d; --gelb: #b7791f; --blau: #1d4ed8; --grund: #f6f7f9; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 -apple-system, "Helvetica Neue", Arial, sans-serif; color: #1b1f24; background: var(--grund); }
header { display: flex; align-items: center; gap: 24px; padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--rand); position: sticky; top: 0; z-index: 5; }
h1 { font-size: 17px; margin: 0; }
h2 { font-size: 15px; margin: 24px 0 8px; }
h3 { font-size: 14px; margin: 16px 0 6px; }
.marke { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 3px; background: #1b1f24; color: #fff; vertical-align: middle; }
nav button { border: 0; background: none; padding: 6px 12px; font: inherit; cursor: pointer; border-bottom: 2px solid transparent; }
nav button.an { border-color: #1b1f24; font-weight: 600; }
.rechts { margin-left: auto; color: var(--leise); font-size: 12px; }
main { padding: 16px 20px 60px; }
button { font: inherit; padding: 4px 10px; border: 1px solid #b6bcc6; border-radius: 4px; background: #fff; cursor: pointer; }
button:hover { background: #eef0f3; }
button.haupt { background: #1b1f24; color: #fff; border-color: #1b1f24; }
button.klein { font-size: 12px; padding: 2px 7px; }
.leise { color: var(--leise); }
.klein { font-size: 12px; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { text-align: left; padding: 6px 9px; border: 1px solid var(--rand); vertical-align: top; }
th { background: #eef0f3; font-weight: 600; font-size: 12px; }
tr.folge { cursor: pointer; }
tr.folge:hover td { background: #fafbfc; }
.status { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.s1 { background: #e5e7eb; color: #4b5563; } .s2 { background: #dbeafe; color: #1e40af; }
.s3 { background: #fef3c7; color: #92400e; } .s4 { background: #d1fae5; color: #065f46; }
.punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.spaet { color: var(--rot); font-weight: 600; }
.bei-sbroker { color: #92400e; } .bei-uns { color: #1e40af; }
.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.kasten { background: #fff; border: 1px solid var(--rand); border-radius: 6px; padding: 12px 14px; }
.kasten h2 { margin-top: 0; }
ul.liste { list-style: none; margin: 0; padding: 0; }
ul.liste li { padding: 5px 0; border-top: 1px solid #eef0f3; }
ul.liste li:first-child { border-top: 0; }
.phase { border-left: 5px solid #999; padding-left: 12px; margin: 18px 0; }
.phase > summary { cursor: pointer; list-style: none; }
.phase > summary::-webkit-details-marker { display: none; }
.phase > summary h3::before { content: "▸ "; }
.phase[open] > summary h3::before { content: "▾ "; }
.links { margin: 10px 0; font-size: 13px; }
.linkzeile { margin: 4px 0; }
.phase-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.phase-kopf h3 { margin: 0; }
details { margin: 8px 0; }
summary { cursor: pointer; }
.haken { color: var(--gruen); font-weight: 700; }
.vorschlag { padding: 8px 0; border-top: 1px solid #eef0f3; }
.vorschlag .knoepfe { margin-top: 4px; display: flex; gap: 6px; }
dialog { border: 1px solid var(--rand); border-radius: 8px; padding: 18px 20px; width: min(720px, 92vw); max-height: 86vh; overflow: auto; }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog textarea { width: 100%; min-height: 220px; font: 13px/1.5 Menlo, monospace; padding: 8px; }
dialog pre { white-space: pre-wrap; background: var(--grund); padding: 10px; border-radius: 4px; font: 13px/1.5 Menlo, monospace; }
.dialog-fuss { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.warn { background: #fef3c7; border: 1px solid #f0d58a; padding: 8px 10px; border-radius: 4px; margin: 8px 0; }
/* Zeitplan */
.zp-leiste { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.zp-leiste button.an { background: #1b1f24; color: #fff; }
.zp { display: grid; grid-template-columns: 190px 1fr; background: #fff; border: 1px solid var(--rand); }
.zp-namen { border-right: 1px solid var(--rand); }
.zp-rollen { overflow-x: auto; position: relative; }
.zp-kopf { height: 46px; position: relative; border-bottom: 1px solid var(--rand); background: #eef0f3; }
.zp-namen .zp-kopf { position: static; }
.zp-zeile { height: 30px; position: relative; border-bottom: 1px solid #eef0f3; }
.zp-zeile.unter { height: 22px; background: #fafbfc; }
.zp-namen .zp-zeile { padding: 5px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.zp-zeile.zp-phase { height: 24px; background: #f6f7f9; }
.zp-namen .zp-zeile.zp-phase { padding: 3px 9px 3px 20px; font-size: 12px; }
.zp-zeile.zp-phase .zp-balken { top: 4px; height: 16px; }
.zp-namen .zp-zeile.unter { padding-left: 40px !important; }
.zp-namen .zp-zeile.unter { padding: 2px 9px 2px 22px; font-size: 12px; color: var(--leise); cursor: default; }
.zp-balken { position: absolute; top: 5px; height: 20px; border-radius: 3px; color: #fff; font-size: 11px; line-height: 20px; padding: 0 5px; overflow: hidden; white-space: nowrap; cursor: pointer; }
.zp-zeile.unter .zp-balken { top: 4px; height: 14px; line-height: 14px; font-size: 10px; opacity: .85; }
.zp-balken.fertig { opacity: .45; }
.zp-raute { position: absolute; top: 9px; width: 11px; height: 11px; transform: rotate(45deg); background: #fea362; border: 1px solid #b96a2e; }
.zp-monat, .zp-tick { position: absolute; top: 0; font-size: 11px; padding: 3px 5px; border-left: 1px solid #c5cad3; height: 23px; white-space: nowrap; font-weight: 600; }
.zp-tick { top: 23px; font-weight: 400; color: var(--leise); border-left-color: #dfe3e8; }
.zp-raster { position: absolute; top: 46px; bottom: 0; width: 0; border-left: 1px solid #f0f2f5; pointer-events: none; }
.zp-raster.frei { border: 0; background: #f3f4f6; }
.zp-heute { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--rot); z-index: 2; pointer-events: none; }
.legende { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; }

/* Anmeldung und Zugänge */
body.anmelden main { max-width: 420px; margin: 12vh auto; padding: 24px; background: #fff; border: 1px solid var(--rand); border-radius: 8px; }
body.anmelden h1 { font-size: 18px; margin-top: 0; }
body.anmelden label { display: block; margin: 12px 0; font-weight: 600; }
body.anmelden input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 8px; font: inherit; border: 1px solid #b6bcc6; border-radius: 4px; }
body.anmelden #code { font-size: 22px; letter-spacing: 6px; }
#ich { margin-left: 12px; }
table.zugaenge { border-collapse: collapse; margin: 12px 0 24px; }
table.zugaenge th, table.zugaenge td { text-align: left; padding: 6px 14px 6px 0; border-bottom: 1px solid var(--rand); }
form.zeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.zeile input, table.zugaenge select, form.zeile select { font: inherit; padding: 5px 8px; border: 1px solid #b6bcc6; border-radius: 4px; }
form.zeile input { min-width: 260px; }
