/* Layout des Testimonial-Renderers: Eingaben links, Vorschau rechts. */

/* hidden zuverlässig durchsetzen — .btn überstimmt sonst das UA-[hidden]. */
[hidden] { display: none !important; }

.trend {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  padding: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.sidebar { display: flex; flex-direction: column; gap: 12px; }
.hint { font-size: 0.8rem; color: var(--text-dim); margin: 0; }

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; flex: 1; }
.field:last-child { margin-bottom: 0; }
.field-row { display: flex; gap: 10px; }

select, textarea, input[type="text"] {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}
textarea { resize: vertical; }
select:focus, textarea:focus, input:focus { outline: none; border-color: var(--accent); }

input[type="color"] {
  width: 100%;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
}

.status { font-size: 0.85rem; min-height: 1.4em; margin: 0; }
.status.working { color: var(--accent); }
.status.error { color: var(--danger); }
.status.ok { color: var(--accent-2); }

.progress { margin-top: 10px; }
.progress[hidden] { display: none; }
.progress .bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.progress .bar > div {
  height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.15s;
}
.progress-text { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--text-dim); font-family: var(--mono); }

/* Vorschau */
.preview-area { align-self: start; }
.pane {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.pane figcaption {
  padding: 8px 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.format-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.format-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.format-option:hover { border-color: var(--accent); }
.format-option.active { border-color: var(--accent); background: rgb(79 140 255 / 0.12); }
.format-option .name { font-size: 0.8rem; }
.format-option .dim { font-size: 0.68rem; color: var(--text-dim); font-family: var(--mono); }

.pane-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--surface-2);
  min-height: 360px;
}
#stage {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  box-shadow: var(--shadow);
  border-radius: 6px;
}

.playbar {
  display: flex;
  justify-content: center;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 1000px) {
  .trend { grid-template-columns: 1fr; }
}
