/* Ideenraum — baut auf style.css auf, nur was der Raum zusätzlich braucht. */

.raum { padding-block: clamp(2.2rem, 5vw, 3.6rem) 2rem; max-width: 52rem; }
.raum h1 { font-family: var(--display); font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.05; letter-spacing: -.025em; margin: 0; font-weight: 700; }
.raum h2 { font-family: var(--display); font-size: 1.25rem; margin: 0 0 .4rem; }
.raum .lede { color: var(--muted); max-width: 60ch; margin: .8rem 0 0; }
.loading { color: var(--muted); font-family: var(--mono); font-size: .85rem; padding: 2rem 0; }

.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px;
  padding: 1.4rem 1.5rem; margin-top: 1.6rem; }
.card > .lede { margin-bottom: 1.2rem; }

.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.field input, .field textarea, .entry select, .entry textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--ground);
  border: 1px solid var(--rule); border-radius: 3px; padding: .55rem .7rem; }
.field input:focus-visible, .entry textarea:focus-visible, .entry select:focus-visible {
  outline: 2px solid var(--seal); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 40rem) { .field-row { grid-template-columns: 1fr; } }
.linkrow { display: flex; gap: .5rem; }
.linkrow input { font-family: var(--mono); font-size: .78rem; }

.fineprint { font-size: .82rem; color: var(--muted); margin: 1rem 0 0; max-width: 62ch; }
.muted { color: var(--muted); font-size: .88rem; }
.hint { color: var(--muted); font-size: .88rem; }

.room-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.pill { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  padding: .25rem .6rem; border-radius: 999px; background: var(--sheet-2); color: var(--muted); }
.pill[data-state="running"], .pill[data-state="stopping"] { background: var(--warn-soft); color: var(--warn); }
.pill[data-state="done"] { background: var(--verd-soft); color: var(--verd); }
.pill[data-state="error"], .pill[data-state="stopped"] { background: var(--seal-soft); color: var(--seal-ink); }

/* Einträge */
.entries { list-style: none; margin: 0 0 1rem; padding: 0; }
.entry { border: 1px solid var(--rule); border-left: 3px solid var(--rule);
  border-radius: 3px; padding: .8rem .9rem; margin-bottom: .7rem; background: var(--ground); }
.entry.is-secret { border-left-color: var(--seal); background: var(--seal-soft); }
.entry-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; flex-wrap: wrap; }
.entry-head .e-cat { width: auto; font-size: .85rem; padding: .3rem .5rem; }
.entry-foot { display: flex; gap: .6rem; margin-top: .5rem; }
.entry-foot select { width: auto; font-size: .78rem; padding: .25rem .45rem; color: var(--muted); }
.secret { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--muted); cursor: pointer; }
.entry.is-secret .secret { color: var(--seal-ink); font-weight: 600; }
.e-del { margin-left: auto; background: none; border: 0; color: var(--muted);
  font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 .3rem; }
.e-del:hover { color: var(--seal); }
.entry textarea { resize: vertical; }

.row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.row.actions { margin-top: 1.2rem; }
.btn-stop { background: transparent; color: var(--seal); border-color: var(--seal); }
.btn-stop:hover { background: var(--seal); color: var(--on-seal); }
button[disabled] { opacity: .45; cursor: not-allowed; }

.flash { font-size: .88rem; padding: .6rem .8rem; border-radius: 3px; margin: .8rem 0 0; }
.flash-err { background: var(--seal-soft); color: var(--seal-ink); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }
.flash-info { background: var(--sheet-2); color: var(--muted); }

/* Ergebnis */
.box-running { border-left: 3px solid var(--warn); }
.box-stopped, .box-error { border-left: 3px solid var(--seal); }
.box-result { border-left: 3px solid var(--verd); }
.result-kicker { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--verd); margin: 0 0 .3rem; }
.result-lead { font-family: var(--display); font-size: 1.2rem; line-height: 1.35; margin: 0 0 1.2rem; }
.result-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1rem; }
@media (max-width: 42rem) { .result-cols { grid-template-columns: 1fr; } }
.box-result h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin: 1rem 0 .4rem; }
.box-result ul { margin: 0; padding-left: 1.1rem; font-size: .93rem; }
.box-result li { margin-bottom: .3rem; }
.box-result li.muted { list-style: none; margin-left: -1.1rem; }
.gate-note { font-size: .85rem; color: var(--verd); background: var(--verd-soft);
  padding: .6rem .8rem; border-radius: 3px; margin-top: 1.2rem; }
.box-result hr { border: 0; border-top: 1px solid var(--rule); margin: 1.4rem 0; }

/* [hidden] muss Klassenregeln schlagen — sonst zeigt `.btn{display:inline-block}`
   Schaltflächen an, die die Logik ausgeblendet hat. */
[hidden] { display: none !important; }
