/* ── Entscheidungsweg UI ── */

.ew-body {
  background: #f0f4f8;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: #1c2024;
  margin: 0;
}

/* Header */
.ew-header {
  background: #1c3550;
  color: #fff;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.ew-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 52px;
}
.ew-logo {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  letter-spacing: .3px;
  flex-shrink: 0;
}
.ew-user {
  font-size: 13px;
  color: #a0b8cc;
  margin-left: .5rem;
}
.ew-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 13px;
}
.ew-nav a { color: #c8dce8; text-decoration: none; }
.ew-nav a:hover { color: #fff; }

/* Main */
.ew-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

/* Buttons */
.btn-primary {
  background: #1f6fbf;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .55rem 1.2rem;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .15s;
}
.btn-primary:hover { background: #1757a0; text-decoration: none; color: #fff; }
.btn-secondary {
  background: transparent;
  border: 1.5px solid #1f6fbf;
  color: #1f6fbf;
  border-radius: 6px;
  padding: .45rem 1rem;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary:hover { background: #e8f0fa; }
.btn-full { display: block; width: 100%; text-align: center; }
.btn-hero {
  font-size: 16px;
  padding: .7rem 2rem;
  border-radius: 8px;
  margin-top: 1rem;
  display: inline-block;
}

/* Hero */
.ew-hero {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}
.ew-hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 .3rem;
  color: #1c2024;
}
.ew-hero-sub {
  color: #5b6470;
  font-size: 15px;
  margin: 0;
}

/* Hut-Filter */
.hut-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0 .75rem;
}
.hut-filter-label { font-size: 13px; color: #5b6470; font-weight: 600; }
.hut-chip {
  padding: .3rem .8rem;
  border-radius: 20px;
  border: 2px solid #d0d5dd;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: #374151;
  transition: all .15s;
  background: #fff;
}
.hut-chip:hover { border-color: var(--hut-farbe, #1f6fbf); color: #1c2024; text-decoration: none; }
.hut-chip-active {
  background: var(--hut-farbe, #1f6fbf);
  border-color: var(--hut-farbe, #1f6fbf);
  color: #fff;
}

/* Hut-Legende */
.hut-legende {
  margin: .5rem 0 1.5rem;
  font-size: 13px;
  color: #5b6470;
}
.hut-legende summary { cursor: pointer; font-weight: 600; }
.hut-legende-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .5rem;
  margin-top: .75rem;
}
.hut-legende-item {
  padding: .5rem .75rem;
  background: #fff;
  border-radius: 6px;
}

/* Phasen & Schritte */
.phase-section { margin-bottom: 2.5rem; }
.phase-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #5b6470;
  border-bottom: 1px solid #d0d5dd;
  padding-bottom: .4rem;
  margin-bottom: 1rem;
}
.schritte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.schritt-card {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  border: 1.5px solid #e2e8f0;
}
.schritt-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .4rem;
}
.schritt-order {
  width: 26px;
  height: 26px;
  background: #1c3550;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.schritt-titel {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: #1c2024;
}
.schritt-leitfrage {
  font-size: 12px;
  color: #5b6470;
  margin: 0 0 .75rem;
  font-style: italic;
}
.schritt-leer { font-size: 12px; color: #9aa5b4; margin: 0; }

/* Gedanken-Liste in Schritt */
.gedanken-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.gedanke-item {
  background: #f8fafc;
  border-radius: 6px;
  padding: .6rem .75rem;
  border: 1px solid #e2e8f0;
  position: relative;
}
.hut-dot {
  display: inline-block;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  margin-right: .3rem;
  vertical-align: middle;
}
.gedanke-summary {
  font-size: 12px;
  color: #374151;
  margin: .2rem 0;
  line-height: 1.45;
}
.gedanke-link {
  font-size: 11px;
  color: #1f6fbf;
  text-decoration: none;
}
.gedanke-link:hover { text-decoration: underline; }

/* Auth */
.auth-box {
  max-width: 420px;
  margin: 4rem auto;
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
}
.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 .4rem;
  text-align: center;
  color: #1c2024;
}
.auth-sub {
  text-align: center;
  color: #5b6470;
  font-size: 14px;
  margin-bottom: 1.5rem;
}
.auth-error {
  background: #fff0f0;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 6px;
  padding: .6rem .9rem;
  font-size: 13px;
  margin-bottom: 1rem;
}
.auth-success {
  background: #f0fff4;
  border: 1px solid #86efac;
  color: #15803d;
  border-radius: 6px;
  padding: .6rem .9rem;
  font-size: 13px;
  margin-bottom: 1rem;
}
.auth-hint { text-align: center; font-size: 13px; color: #5b6470; margin-top: 1rem; }

/* Form fields */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: .3rem;
  margin-top: .9rem;
}
.field-input {
  display: block;
  width: 100%;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  padding: .6rem .8rem;
  font-size: 14px;
  color: #1c2024;
  transition: border-color .15s;
  background: #fff;
}
.field-input:focus { outline: none; border-color: #1f6fbf; }
.code-input { font-size: 1.6rem; text-align: center; letter-spacing: .5rem; font-weight: 700; }

/* Dump */
.dump-box {
  max-width: 640px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.dump-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 .3rem; }
.dump-sub { color: #5b6470; font-size: 14px; margin-bottom: 1.5rem; }
.dump-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.tab-btn {
  padding: .4rem 1rem;
  border-radius: 6px;
  border: 2px solid #d1d5db;
  background: #f9fafb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tab-active { border-color: #1f6fbf; background: #e8f0fa; color: #1f6fbf; }
.dump-textarea {
  width: 100%;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: .8rem;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}
.dump-textarea:focus { outline: none; border-color: #1f6fbf; }
.dump-submit { margin-top: 1.5rem; }

/* Voice */
.voice-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-record {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .55rem 1.2rem;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-record:hover { background: #b91c1c; }
.btn-record-stop {
  background: #374151;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .55rem 1.2rem;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.rec-status { font-size: 13px; color: #5b6470; }

/* Gedanke Detail */
.gedanke-detail { max-width: 720px; margin: 0 auto; }
.back-link { font-size: 13px; color: #1f6fbf; text-decoration: none; display: inline-block; margin-bottom: 1rem; }
.back-link:hover { text-decoration: underline; }
.gedanke-header { margin-bottom: 1.5rem; }
.gedanke-header h2 { margin: 0 0 .3rem; }
.gedanke-meta { font-size: 13px; color: #5b6470; }
.gedanke-section {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1.5px solid #e2e8f0;
}
.gedanke-section h3 { margin: 0 0 .75rem; font-size: 14px; color: #374151; }
.transkript-text { font-size: 14px; color: #374151; line-height: 1.6; }
.summary-text { font-size: 14px; color: #1c2024; line-height: 1.6; }
.schritt-badge {
  display: inline-block;
  background: #1c3550;
  color: #fff;
  border-radius: 6px;
  padding: .4rem .9rem;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: .75rem;
}
.hut-badge {
  display: inline-block;
  color: #1c2024;
  border-radius: 6px;
  padding: .4rem .9rem;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: .75rem;
}
.umrouten-details { margin-top: .5rem; font-size: 13px; }
.umrouten-details summary { cursor: pointer; color: #5b6470; }
.umrouten-form { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; flex-wrap: wrap; }
.muted { color: #9aa5b4; font-size: 13px; }

/* Status */
.status-processing {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-radius: 8px;
  padding: .8rem 1rem;
  margin-bottom: 1rem;
  font-size: 14px;
  color: #92400e;
}
.status-done {
  background: #f0fff4;
  border: 1.5px solid #86efac;
  border-radius: 8px;
  padding: .6rem 1rem;
  margin-bottom: 1rem;
  font-size: 14px;
  color: #15803d;
  font-weight: 600;
}
.status-failed {
  background: #fff0f0;
  border: 1.5px solid #fca5a5;
  border-radius: 8px;
  padding: .6rem 1rem;
  margin-bottom: 1rem;
  font-size: 14px;
  color: #b91c1c;
}
.alert-error {
  background: #fff0f0;
  border: 1.5px solid #fca5a5;
  border-radius: 8px;
  padding: .9rem 1rem;
  color: #b91c1c;
  font-weight: 600;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fcd34d;
  border-top-color: #92400e;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
