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

.leiste { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 14px; }
body.embed .leiste { padding: 6px 4px; }

.werkstatt {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 10px;
  padding: 0 14px 14px;
}
body.embed .werkstatt { padding: 0 4px 4px; }
.werkstatt.zwei { grid-template-columns: 1fr 1.1fr; }
.werkstatt.eins { grid-template-columns: 1fr; }

textarea.code {
  flex: 1; min-height: 0; resize: none; border: 0; padding: 10px 12px;
  font-size: 0.8em; line-height: 1.45; tab-size: 2; color: var(--text);
  background: #fbfbfb; white-space: pre; overflow: auto;
}
#css { background: #fcf8f9; }

#vorschau { flex: 1; border: 0; width: 100%; background: #fff; }
#p-vorschau { position: relative; }

.probleme {
  margin: 0; padding: 8px 12px 8px 34px; max-height: 45%; overflow: auto;
  border-top: 2px solid var(--rot); background: var(--rot-hell); font-size: 0.78em;
}
.probleme li { margin: 3px 0; }
.probleme li.gut { list-style: none; margin-left: -20px; color: var(--ok); font-weight: 600; }
.probleme .zeile { color: var(--rot-dunkel); font-weight: 700; margin-right: 4px; }
.probleme.ok { background: var(--ok-hell); border-top-color: var(--ok); }

.toast {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  background: var(--blau); color: #fff; border-radius: 8px; padding: 10px 12px;
  font-size: 0.8em; box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

@media (max-width: 860px) {
  body { height: auto; }
  .werkstatt, .werkstatt.zwei { grid-template-columns: 1fr; }
  .panel { min-height: 260px; }
  textarea.code { min-height: 240px; }
}
