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

.eingabe { display: flex; gap: 12px; align-items: center; padding: 10px 14px 0; }
body.embed .eingabe { padding: 4px 4px 0; }
.eingabe label { font-weight: 600; }
#selektor {
  flex: 1; font: 700 1.25em/1.2 var(--mono); padding: 6px 12px; color: var(--blau);
  border: 2px solid var(--blau); border-radius: 8px;
}
#selektor:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
#selektor.fehler { border-color: var(--rot); color: var(--rot); }
.treffer {
  min-width: 7.5em; text-align: center; font-weight: 700; padding: 6px 12px; border-radius: 8px;
  background: var(--rot); color: #fff;
}
.treffer.null { background: var(--flaeche); color: var(--grau); }
.treffer.fehler { background: var(--rot-hell); color: var(--rot-dunkel); }

.erklaerung { margin: 6px 14px 8px; min-height: 1.4em; font-size: 0.95em; }
body.embed .erklaerung { margin: 5px 4px 6px; }
.erklaerung b { color: var(--rot); }

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

.quelle {
  flex: 1; margin: 0; padding: 8px 12px; overflow: auto; background: #fbfbfb;
  font-size: 0.72em; line-height: 1.42;
}
.quelle .tag { color: var(--blau); }
.quelle .an { color: var(--rot-dunkel); }
.quelle .wert { color: #7a5b00; }
.quelle .el { border-radius: 3px; transition: background .15s; }
.quelle .el.treffer-el { background: rgba(228, 0, 58, .16); box-shadow: 0 0 0 1px rgba(228, 0, 58, .45); }
.quelle .el.treffer-el .el.treffer-el { background: rgba(228, 0, 58, .26); }

#vorschau { flex: 1; border: 0; width: 100%; background: #fff; }

@media (max-width: 760px) {
  body { height: auto; }
  .spielplatz { grid-template-columns: 1fr; }
  .panel { min-height: 300px; }
}
