/* Colours as in the browser DevTools box model view. */
:root { --m: #f8c58f; --b: #f2c94c; --p: #a9d18e; --c: #8fbce6; }

body { display: flex; flex-direction: column; height: 100vh; }

.inspektor {
  flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 360px; gap: 12px; padding: 12px 14px 14px;
}
body.embed .inspektor { padding: 4px; grid-template-columns: 1fr 340px; }

.legende { display: flex; gap: 6px; align-items: center; text-transform: none; letter-spacing: 0; font-weight: 600; }
.legende i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 6px; }
.l-margin { background: var(--m); } .l-border { background: var(--b); } .l-padding { background: var(--p); } .l-content { background: var(--c); }

.buehne { flex: 1; min-height: 0; overflow: hidden; padding: 30px 16px 6px; }
.text { margin: 0; line-height: 1.6; color: #555; }

#box {
  color: #1d2228; font-weight: 600; text-align: center;
  border-style: solid; border-color: var(--b);
  /* padding area green, content area blue: the gradient is clipped to the content box */
  background: linear-gradient(var(--c), var(--c)) content-box, var(--p);
  height: 70px;
}
#inhalt { display: inline-block; padding-top: 0.15em; }

.rechnung {
  margin: 0; padding: 8px 12px; border-top: 1px solid var(--linie); background: var(--flaeche);
  font-family: var(--mono); font-size: 0.82em; line-height: 1.5; min-height: 4.6em;
}
.rechnung b { color: var(--rot); }
.rechnung .klein { color: var(--grau); }

.steuerung { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.regler { display: grid; grid-template-columns: 5.2em 1fr 3.6em; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.9em; }
.regler input { width: 100%; accent-color: var(--rot); }
.regler output { text-align: right; font-variant-numeric: tabular-nums; }
.schalter { display: flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: 0.9em; }
.schalter > span { width: 5.8em; flex: none; white-space: nowrap; }
.schalter button { font-family: var(--mono); font-size: 0.85em; padding: 3px 8px; white-space: nowrap; }

.code {
  flex: 1; min-height: 0; margin: 2px 0 0; padding: 8px 12px; overflow: auto;
  border: 2px solid var(--linie); border-radius: 10px; background: #fbfbfb; font-size: 0.8em; line-height: 1.45;
}
.code .neu { background: var(--rot-hell); color: var(--rot-dunkel); border-radius: 3px; }

@media (max-width: 760px) {
  .inspektor { grid-template-columns: 1fr; }
  .buehne { min-height: 260px; }
}
