/* Betrieb (Admin-Dashboard): gleiche Sprache wie das Cockpit (app.css), hier nur Lage, Tabelle und Protokoll. */
.betrieb { max-width: 1360px; margin: 0 auto; padding: .6rem 1.6rem 4rem; }
.betrieb .kopf { padding: .6rem 0; border-bottom: 1px solid var(--linie); gap: .4rem; }
.betrieb .kopf .krake { margin-right: .3rem; } .betrieb .kopf strong { flex: none; }
.betrieb .kopf .ort { font: 500 .7rem var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--leise); border: 1px solid var(--linie); border-radius: 99px; padding: .15rem .6rem; margin-left: .3rem; }
.betrieb .kopf #wer { margin-left: auto; padding-right: .4rem; }
.tor .ort { font: 500 .75rem var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--leise); margin: 0 0 1.4rem; }

.lage { display: flex; align-items: center; gap: .7rem; margin: 1.6rem 0 .9rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; }
.lage .punkt { width: 12px; height: 12px; } .lage.rot .punkt { background: var(--fehler); } .lage small { font: 400 .87rem/1.4 Inter, sans-serif; letter-spacing: 0; color: var(--leise); margin-left: auto; }
.kacheln { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rad); padding: 1rem 1.1rem; display: grid; gap: .2rem; align-content: start; }
.kachel b { font-size: 1.7rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; } .kachel span { color: var(--leise); font-size: .85rem; }
.kachel.warn b { color: var(--wartet-t); } .kachel.rot b { color: var(--fehler-t); }

.tabelle-rahmen { border: 1px solid var(--linie); border-radius: var(--rad); background: var(--flaeche); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .75rem .8rem; border-bottom: 1px solid var(--linie); vertical-align: top; } th, td:last-child { white-space: nowrap; }
th { color: var(--leise); font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; padding-top: .7rem; padding-bottom: .7rem; }
tr:last-child td { border-bottom: 0; } tr:focus-visible { outline-offset: -2px; }
td strong { font-weight: 600; } td small { display: block; color: var(--leise); font-size: .8rem; } td small.warn { color: var(--wartet-t); }
td[data-label="Hermes"] { max-width: 14rem; overflow-wrap: anywhere; }
#release-status { overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: .45rem; }
/* Aktionen je Kunde liegen in einem Aufklapp-Menü – die Tabelle bleibt ruhig und passt ohne Querscrollen */
.menue { position: relative; display: inline-block; }
.menue summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--linie); border-radius: 99px; padding: .3rem .5rem .3rem .85rem; font-size: .85rem; font-weight: 500; }
.menue summary::-webkit-details-marker { display: none; } .menue summary:hover { background: var(--hebung); }
.menue summary .ic { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .15s; } .menue[open] summary .ic { transform: rotate(-90deg); }
.aktionen { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 5; display: grid; gap: .1rem; min-width: 15rem; padding: .35rem; background: var(--hebung); border: 1px solid var(--linie); border-radius: 14px; box-shadow: 0 12px 32px rgb(0 0 0 / .35); }
.aktionen button { padding: .35rem .7rem; font-size: .87rem; font-weight: 500; min-height: 2.2rem; text-align: left; border-radius: 9px; border-color: transparent; }
.aktionen button:hover { background: var(--flaeche); }
:root[data-thema="hell"] .aktionen { box-shadow: 0 8px 24px rgb(0 0 0 / .12); }
.details-knopf { display: none; }

.zwei-spalten { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 2.4rem; margin-top: .6rem; }
.zwei-spalten .karte { width: 100%; }
.protokoll { max-height: 470px; overflow-y: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rad); padding: .2rem 1.1rem; margin: 0; }
.protokoll li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; } .protokoll li span::first-letter { text-transform: uppercase; } .protokoll small { font-family: var(--mono); font-size: .75rem; flex: none; }
#info { min-height: 1.4em; color: var(--leise); }

@media (max-width: 1000px) { .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kachel:first-child { grid-column: 1 / -1; } }
/* Handy: jede Kundenzeile wird zur Karte mit Beschriftung je Wert */
@media (max-width: 1000px) {
  .betrieb { padding: .4rem 1rem 3rem; } .betrieb .kopf #wer { display: none; } .betrieb .kopf .ort { margin-right: auto; }
  .lage { font-size: 1.25rem; flex-wrap: wrap; } .lage small { margin-left: 0; width: 100%; }
  .zwei-spalten { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tabelle-rahmen { border: 0; background: none; } thead { display: none; }
  table, tbody, tr, td { display: block; }
  .menue { display: block; } .aktionen { position: static; box-shadow: none; margin-top: .5rem; }
  tr { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rad); padding: .6rem 1rem 1rem; margin-bottom: .7rem; }
  td.neben { display: none !important; } tr.mehr td.neben { display: grid !important; }
  td { border: 0 !important; padding: .27rem 0; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .1rem .6rem; }
  td::before { content: attr(data-label); color: var(--leise); font-size: .82rem; grid-row: span 3; } td > * { grid-column: 2; }
  td:first-child { display: block; padding: .5rem 0 .6rem; font-size: 1.05rem; } td:first-child::before, td:last-child::before { display: none; } td:last-child { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .7rem; }
  .details-knopf { display: inline-flex; align-items: center; min-height: 44px; font-size: .87rem; } .menue summary { min-height: 44px; } .menue[open] { flex-basis: 100%; }
  .protokoll li { display: grid; gap: 0; }
}
