/* Lieferantenportal (lp-*) und «Lieferanten im Projekt» im Mitarbeiterportal (lt-*) */
body.lieferantenportal .inhalt, body.lieferantenportal .fuss { max-width: 1200px; }

.lp-chip {
  display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--hinter); color: var(--text-2);
}
.lp-chip.ok { background: var(--gruen-hell); color: var(--gruen); }
.lp-chip.info { background: #e8f1fc; color: #0a4f9e; }
.lp-chip.warn { background: #fff1df; color: #8a4600; }
.lp-chip.offen { background: #eef0f3; color: var(--text); }
.lp-chip.grau { background: var(--hinter); color: var(--text-2); }
.lp-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
p.lp-chips { margin: .4rem 0 0; }
.lp-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }

/* Übersicht: was ansteht, nächste Einsätze, Aufträge */
.lp-zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lp-zahl {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 10px;
  background: var(--hinter); min-width: 0;
}
.lp-zahl-wert { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.lp-zahl-titel { color: var(--text-2); font-size: .88rem; }
.lp-zahl.warn { background: #fff1df; }
.lp-zahl.warn .lp-zahl-wert { color: #8a4600; }
.lp-zahl.info { background: #e8f1fc; }
.lp-zahl.info .lp-zahl-wert { color: #0a4f9e; }

.lp-einsatz-liste { display: flex; flex-direction: column; }
.lp-einsatz {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--linie); color: var(--text); text-decoration: none;
}
.lp-einsatz:last-child { border-bottom: 0; }
a.lp-einsatz:hover .lp-einsatz-text b, a.lp-einsatz:focus-visible .lp-einsatz-text b { color: var(--marke); }
.lp-einsatz-text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.lp-datum { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-einsatz.faellig .lp-datum { color: #8a4600; }

.lp-auftrag { display: block; color: var(--text); text-decoration: none; border: 2px solid transparent; }
a.lp-auftrag:hover, a.lp-auftrag:focus-visible { border-color: var(--marke); }
.lp-auftrag.faellig { border-left: 4px solid #e8a33c; }
.lp-naechster { font-weight: 600; }
.lp-fertig { margin-top: 16px; }
.lp-fertig summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.lp-fertig .liste { margin-top: 8px; }

/* Ein Auftrag */
.lp-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 16px; align-items: start; }
.lp-haupt, .lp-seite { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lp-haupt .karte, .lp-seite .karte { margin: 0; }
.lp-haupt > .meldung { margin: 0; }

.lp-arbeitsliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-arbeit { border: 1px solid var(--linie); border-radius: 10px; padding: 12px 14px; }
.lp-arbeit.stand-faellig { border-color: #e8a33c; background: #fffaf2; }
.lp-arbeit.stand-erledigt { background: #f6fbf7; }
.lp-arbeit-kopf { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.lp-arbeit-kopf h3 { overflow-wrap: anywhere; }
.lp-check { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lp-check li { display: flex; gap: 8px; color: var(--text-2); font-size: .92rem; }
.lp-check li.erledigt { color: var(--gruen); }
.lp-haken { width: 1.1em; flex: none; text-align: center; }

.lp-doks { list-style: none; margin: 0; padding: 0; }
.lp-doks li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.lp-doks li:last-child { border-bottom: 0; }
.lp-dok-zeichen { font-size: 1.25rem; flex: none; }
.lp-dok-text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; overflow-wrap: anywhere; }

.lp-hochladen { border: 1px dashed var(--linie); border-radius: 10px; padding: 14px; margin: 0 0 12px; background: var(--hinter); }
.lp-hochladen-felder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.lp-hochladen .feld { margin: 0; }
.lp-hochladen select { width: 100%; }
.lp-datei-knopf { cursor: pointer; }
.lp-gewaehlt { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.lp-hochladen .aktionen { margin-top: 10px; }
.lp-hochladen .meldung { margin-top: 10px; }
.lp-eigene-leer { padding: 12px; }

.lp-termin-liste { list-style: none; margin: 0; padding: 0; }
.lp-termin-liste li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 9px 0 9px 12px;
  border-left: 3px solid var(--linie); margin-bottom: 6px;
}
.lp-termin-liste li.eigen { border-left-color: var(--marke); }
.lp-termin-liste li.vorbei { opacity: .6; }
.lp-termin-text { display: flex; flex-direction: column; overflow-wrap: anywhere; }
.lp-adresse { font-size: 1.05rem; font-weight: 600; margin: 0 0 10px; }
.lp-person { display: flex; flex-direction: column; margin: 0 0 8px; }

.lp-vorschau-auftrag { margin: 12px 0; }
.lp-vorschau-auftrag > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }

/* Mitarbeiterportal: Lieferanten im Projekt */
.lt-suchen { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.lt-suchen .suche { flex: 1; min-width: 200px; }
.lt-projekt { display: block; color: var(--text); text-decoration: none; border: 2px solid transparent; }
a.lt-projekt:hover, a.lt-projekt:focus-visible { border-color: var(--marke); }
.lt-firmen { display: flex; flex-direction: column; }
.lt-firma-kopf { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.lt-firma-kopf h2 { margin: 0; }
.lt-firma h3 { margin: 16px 0 6px; font-size: .95rem; }
.lt-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; }
.lt-personen, .lt-arbeiten { list-style: none; margin: 0; padding: 0; }
.lt-personen li, .lt-arbeiten li {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--linie);
}
.lt-personen li:last-child, .lt-arbeiten li:last-child { border-bottom: 0; }
.lt-personen li .unter { flex-basis: 100%; margin: 0; }
.lt-personen li.gesperrt { opacity: .7; }
.lt-arbeit-text { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.lt-freigaben { margin-top: 16px; border-top: 1px solid var(--linie); padding-top: 10px; }
.lt-freigaben > summary { cursor: pointer; padding: 6px 0; }
.lt-dateien { display: flex; flex-direction: column; }
.lt-datei { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--linie); cursor: pointer; }
.lt-datei input { flex: none; }
.lt-fotos { margin-top: 8px; }
.lt-fotos > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.lt-fb-form { margin: 10px 0; padding: 12px; border-radius: 10px; background: var(--hinter); }
.lt-fb-liste { display: flex; flex-wrap: wrap; gap: 6px 16px; }
/* Kästchen in einer Zeile mit ihrem Text (nicht wie die Eingabefelder eines Formulars) */
.lt-fb-liste .lt-fb { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; font-size: 1rem; margin: 0; }
.lt-fb-liste input[type="checkbox"] { width: auto; padding: 0; margin: 0; }
.lt-neu > .hinweis { margin: 0 0 12px; }
.lt-hinzufuegen .feld { margin-bottom: 12px; }
.lt-hinzufuegen select { max-width: 100%; }

@media (max-width: 900px) {
  .lp-raster { grid-template-columns: minmax(0, 1fr); }
  .lp-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .lp-einsatz { grid-template-columns: minmax(0, 1fr) auto; }
  .lp-einsatz .lp-datum { grid-column: 1 / -1; }
  .lp-hochladen-felder { grid-template-columns: minmax(0, 1fr); }
  .lp-doks li { flex-wrap: wrap; }
  .lp-doks li .lp-dok-text { flex-basis: calc(100% - 44px); }
  .lp-doks li .knopf { margin-left: auto; }
  .lp-arbeit-kopf { flex-direction: column; }
}
@media (pointer: coarse) {
  .lt-datei { min-height: 44px; }
  .lp-einsatz { min-height: 48px; }
}
