/* Farben und Maße wie MyStation (Werkbank-Farben, shadcn-Karten) */
:root {
  --bg: #ffffff; --fg: #1d2328; --muted: #f3f4f5; --muted-fg: #5f676e; --primary: #3d761b; --primary-fg: #fff;
  --marke: #4c8c22; --accent: #eef6e4; --accent-fg: #2f5c14; --border: #e2e5e8; --input: #899198;
  --ok: #276b43; --ok-soft: #e3f0e8; --warn: #8a5c0e; --warn-soft: #f5ecd9; --rot: #a13a26; --rot-soft: #f6e2dd;
  --info: #3c5a78; --info-soft: #e9eef4; --radius: 10px;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.knopfleiste { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 14px; }
body { margin: 0; background: #fafbfa; color: var(--fg); font-size: 14px; line-height: 1.45; }
a { color: var(--primary); }
.mono { font-family: "IBM Plex Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }
.kopf { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--border); }
.kopf .innen { max-width: 64rem; margin: 0 auto; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.kopf img { height: 24px; }
.kopf .marke { font-weight: 600; font-size: 16px; }
.kopf .rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 500; background: var(--muted); }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.warn { background: var(--warn-soft); color: var(--warn); }
main { max-width: 64rem; margin: 0 auto; padding: 24px 16px 64px; }
.seitenkopf { margin-bottom: 20px; }
.seitenkopf .ueber { font-size: 13px; font-weight: 500; color: var(--primary); }
.seitenkopf h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 2px 0 4px; }
.seitenkopf p { margin: 0; color: var(--muted-fg); }
.raster { display: grid; gap: 20px; grid-template-columns: 14rem minmax(0, 1fr); }
@media (max-width: 760px) { .raster { grid-template-columns: 1fr; } .schritte ol { flex-direction: row !important; overflow-x: auto; } }
.schritte { position: sticky; top: 76px; align-self: start; display: flex; flex-direction: column; gap: 10px; }
.schritte .info { font-size: 12px; color: var(--muted-fg); }
.balken { height: 8px; border-radius: 99px; background: var(--muted); overflow: hidden; }
.balken > div { height: 100%; background: var(--primary); }
.schritte ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.schritte a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--fg); white-space: nowrap; }
.schritte a:hover { background: var(--muted); }
.schritte a.aktiv { background: var(--muted); font-weight: 600; }
.ico { width: 16px; height: 16px; flex: none; }
.ico.ok { color: var(--ok); } .ico.offen { color: var(--muted-fg); }
.karte { background: var(--bg); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.4); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.karte > .kk { padding: 20px 24px 4px; display: flex; gap: 12px; align-items: flex-start; }
.karte > .kk .nr { width: 28px; height: 28px; border-radius: 99px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-weight: 600; flex: none; }
.karte h2 { font-size: 18px; margin: 2px 0 2px; font-weight: 600; }
.karte .beschreibung { color: var(--muted-fg); margin: 0; }
.karte > .inhalt { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.karte > .fuss { border-top: 1px solid var(--border); padding: 14px 24px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; background: #fcfcfc; border-radius: 0 0 14px 14px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
legend { font-weight: 600; padding: 0 4px; }
.felder { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.felder.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.felder.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .felder, .felder.drei, .felder.vier { grid-template-columns: 1fr; } }
.breit { grid-column: 1 / -1; }
label.feld { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 13px; }
label.feld small { font-weight: 400; color: var(--muted-fg); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input:not([type]), select, textarea {
  font: inherit; color: inherit; border: 1px solid var(--input); border-radius: 8px; padding: 7px 10px; background: #fff; width: 100%; min-height: 36px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(61,118,27,.25); border-color: var(--primary); }
textarea { min-height: 80px; resize: vertical; }
.kontrolle { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.kontrolle input { width: 16px; height: 16px; accent-color: var(--primary); }
.knopf { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 500; cursor: pointer; border: 1px solid transparent; text-decoration: none; min-height: 36px; }
.knopf.primaer { background: var(--primary); color: var(--primary-fg); }
.knopf.primaer:hover { background: #335f17; }
.knopf.umriss { background: #fff; border-color: var(--border); color: var(--fg); }
.knopf.umriss:hover { background: var(--muted); }
.knopf.leise { background: transparent; color: var(--muted-fg); padding: 6px 8px; }
.knopf.leise:hover { color: var(--rot); }
.hinweis { border-radius: var(--radius); padding: 10px 14px; display: flex; gap: 10px; align-items: flex-start; }
.hinweis.ok { background: var(--ok-soft); color: var(--ok); } .hinweis.fehler { background: var(--rot-soft); color: var(--rot); }
.hinweis.info { background: var(--info-soft); color: var(--info); } .hinweis.warn { background: var(--warn-soft); color: var(--warn); }
figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
figure img { max-height: 24rem; width: 100%; object-fit: contain; border: 1px solid var(--border); border-radius: var(--radius); background: var(--muted); }
figcaption { font-size: 12px; color: var(--muted-fg); }
.ablage { position: relative; border: 2px dashed #c9d3c2; border-radius: 14px; padding: 22px 16px; display: flex;
  flex-direction: column; align-items: center; gap: 4px; text-align: center; background: linear-gradient(180deg, #fbfdf9, #f4f8f0);
  cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.ablage:hover { border-color: var(--marke); }
.ablage:focus-within { box-shadow: 0 0 0 3px rgba(61,118,27,.25); }
.ablage.ziehen { border-color: var(--primary); border-style: solid; background: var(--accent); box-shadow: 0 0 0 4px rgba(61,118,27,.12); }
.ablage input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ablage-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff;
  color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 6px; transition: transform .15s; }
.ablage-ico .ico { width: 22px; height: 22px; }
.ablage.ziehen .ablage-ico { transform: translateY(-3px); }
.ablage strong { font-size: 15px; }
.ablage-text { color: var(--muted-fg); font-size: 13px; }
.ablage-text u { color: var(--primary); text-decoration: none; font-weight: 600; }
.auswahl { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.auswahl:empty { display: none; }
.auswahl li { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; font-size: 12px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auswahl li.zu-gross { border-color: var(--rot); color: var(--rot); }
.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.liste li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; }
.liste li .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste li form { margin: 0; }
table.tab { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tab th { text-align: left; font-weight: 500; color: var(--muted-fg); border-bottom: 1px solid var(--border); padding: 6px 8px; }
table.tab td { border-bottom: 1px solid var(--border); padding: 6px 8px; vertical-align: top; }
.treffer { border: 1px solid var(--border); border-radius: 8px; max-height: 260px; overflow-y: auto; }
.treffer button { display: flex; width: 100%; text-align: left; gap: 8px; align-items: baseline; background: #fff; border: 0; border-bottom: 1px solid var(--border); padding: 8px 10px; font: inherit; cursor: pointer; }
.treffer button:hover { background: var(--accent); }
.treffer .klein { color: var(--muted-fg); font-size: 12px; }
.zusammenfassung h3 { font-size: 14px; color: var(--primary); margin: 12px 0 4px; }
.leer-text { color: var(--muted-fg); }
.login { min-height: calc(100vh - 57px); display: grid; place-items: center; padding: 24px 16px; }
.login .karte { width: 100%; max-width: 26rem; }
.login .kk { flex-direction: column; align-items: center; text-align: center; }
.elekfeld { display: flex; border: 1px solid var(--input); border-radius: 8px; overflow: hidden; }
.elekfeld span { background: var(--muted); padding: 7px 10px; font-family: "IBM Plex Mono", Consolas, monospace; border-right: 1px solid var(--border); }
.elekfeld input { border: 0 !important; border-radius: 0 !important; }
.pin { letter-spacing: .2em; font-family: "IBM Plex Mono", Consolas, monospace; }
.pinfeld { position: relative; }
.pinfeld input { position: relative; background: transparent !important; }
.pinmaske { position: absolute; inset: 0; border: 1px solid transparent; padding: 7px 10px; line-height: 20px;
  white-space: pre; pointer-events: none; background: #fff; border-radius: 8px; display: flex; align-items: center; }
.pinmaske .getippt { visibility: hidden; }
.pinmaske .rest { color: #9aa3ab; }

.lageplan-regeln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lageplan-regeln div { display: flex; flex-direction: column; gap: 2px; background: var(--accent); color: var(--accent-fg);
  border-radius: var(--radius); padding: 10px 14px; }
.lageplan-regeln span { color: var(--fg); font-size: 13px; }
@media (max-width: 640px) { .lageplan-regeln { grid-template-columns: 1fr; } }
