/* LML Beziehungskompass — Quiz-Styles v0.1.0 */

#lmlbk-app {
  max-width: 680px;
  margin: 0 auto;
  font-family: inherit;
  line-height: 1.6;
  color: #1a1a1a;
}

/* ── Schritte ──────────────────────────────────────────────── */
.lmlbk-step {
  padding: 2rem 1.5rem;
}

/* ── Intro ─────────────────────────────────────────────────── */
.lmlbk-intro h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

/* Zweispaltiges Intro mit Bild; ohne Bild bleibt der Text volle Breite */
.lmlbk-intro-cols.has-image {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: center;
}

.lmlbk-intro-image img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

@media (max-width: 600px) {
  .lmlbk-intro-cols.has-image { grid-template-columns: 1fr; gap: 1.25rem; }
  .lmlbk-intro-image { order: -1; }
  .lmlbk-intro-image img { max-height: 220px; }
}

.lmlbk-notice {
  background: #f5f0e8;
  border-left: 4px solid #c8a96e;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

/* ── Fortschrittsanzeige ───────────────────────────────────── */
.lmlbk-progress {
  margin-bottom: 1.5rem;
}

.lmlbk-progress span {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.4rem;
}

.lmlbk-progress-bar {
  background: #e8e8e8;
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}

.lmlbk-progress-fill {
  height: 100%;
  background: #2e6f9e;
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* ── Fragentext ────────────────────────────────────────────── */
.lmlbk-q-text {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ── Antwortskala ──────────────────────────────────────────── */
.lmlbk-scale {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.lmlbk-scale-opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.lmlbk-scale-opt:hover {
  border-color: #2e6f9e;
  background: #f0f6fb;
}

.lmlbk-scale-opt.selected {
  border-color: #2e6f9e;
  background: #e8f1f8;
}

.lmlbk-scale-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lmlbk-scale-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #eee;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.lmlbk-scale-opt.selected .lmlbk-scale-num {
  background: #2e6f9e;
  color: #fff;
}

.lmlbk-scale-label {
  font-size: 0.95rem;
  color: #444;
}

/* ── Buttons ───────────────────────────────────────────────── */
.lmlbk-btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.lmlbk-btn {
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.lmlbk-btn:active { transform: scale(0.98); }
.lmlbk-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.lmlbk-btn-primary {
  background: #2e6f9e;
  color: #fff;
}
.lmlbk-btn-primary:hover:not(:disabled) { background: #245a82; }

.lmlbk-btn-secondary {
  background: #e8e8e8;
  color: #333;
}
.lmlbk-btn-secondary:hover:not(:disabled) { background: #d5d5d5; }

.lmlbk-btn-caution {
  background: #c0392b;
  color: #fff;
}
.lmlbk-btn-caution:hover:not(:disabled) { background: #a93226; }

/* ── Schutzfragen ──────────────────────────────────────────── */
.lmlbk-safety-header {
  background: #fdf6e3;
  border-left: 4px solid #e6b800;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.lmlbk-safety-header strong {
  display: block;
  margin-bottom: 0.3rem;
}

/* ── Krisenpfad ────────────────────────────────────────────── */
.lmlbk-crisis {
  background: #fef9f0;
  border: 2px solid #e6b800;
  border-radius: 8px;
}

.lmlbk-crisis h2 {
  color: #7a5900;
  margin-top: 0;
}

/* ── Ergebnis ──────────────────────────────────────────────── */
.lmlbk-result-title {
  font-size: 1.5rem;
  margin-top: 0;
  color: #1a3a52;
}

.lmlbk-result-lead {
  font-size: 1.05rem;
  color: #333;
  border-left: 4px solid #2e6f9e;
  padding-left: 1rem;
  margin: 1rem 0;
}

.lmlbk-hints {
  padding-left: 1.25rem;
  color: #444;
}

.lmlbk-hints li { margin-bottom: 0.4rem; }

.lmlbk-next {
  background: #f0f6fb;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.97rem;
}

/* ── Ergebnis: Profil-Header ───────────────────────────────── */
.lmlbk-result-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.lmlbk-result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2e6f9e;
  color: #fff;
  flex-shrink: 0;
}

.lmlbk-result-header .lmlbk-result-title { margin: 0; }

.lmlbk-result-sub {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: #666;
}

/* ── Ergebnis: Dimensions-Balken ───────────────────────────── */
.lmlbk-dims {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.lmlbk-dim {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lmlbk-dim-label {
  flex: 0 0 42%;
  font-size: 0.88rem;
  color: #444;
}

.lmlbk-dim-bar {
  flex: 1;
  height: 8px;
  background: #e8e8e8;
  border-radius: 99px;
  overflow: hidden;
}

.lmlbk-dim-fill {
  display: block;
  height: 100%;
  background: #2e6f9e;
  border-radius: 99px;
}

/* Polaritäts-bewusste Einfärbung: Kraftfelder vs. Belastungsfelder */
.lmlbk-dim.is-resource .lmlbk-dim-fill { background: #2e6f9e; }
.lmlbk-dim.is-burden   .lmlbk-dim-fill { background: #cf9b57; }

.lmlbk-dims-intro {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.55;
  margin: 1.25rem 0 0.85rem;
}

.lmlbk-dims-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: #666;
}

.lmlbk-lg { display: inline-flex; align-items: center; gap: 0.4rem; }
.lmlbk-lg::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.lmlbk-lg-res::before { background: #2e6f9e; }
.lmlbk-lg-bur::before { background: #cf9b57; }

.lmlbk-dims-explain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.25rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid #eee;
}
.lmlbk-dim-explain-item {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #777;
}
.lmlbk-dim-explain-item strong {
  color: #444;
}

/* „Als PDF speichern"-Knopf (sekundär, lenkt nicht vom Opt-in ab) */
.lmlbk-result-actions { margin: 1.4rem 0 0.5rem; }
.lmlbk-print-btn {
  font: inherit;
  font-weight: 600;
  color: #2e6f9e;
  background: none;
  border: 1.5px solid #2e6f9e;
  border-radius: 99px;
  padding: 0.5rem 1.15rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lmlbk-print-btn:hover { background: #2e6f9e; color: #fff; }

/* Druck / „Als PDF speichern": nur das Ergebnis, ohne Formular/Hinweis/Theme-Rahmen */
@media print {
  body * { visibility: hidden !important; }
  #lmlbk-app, #lmlbk-app * { visibility: visible !important; }
  #lmlbk-app {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    margin: 0; padding: 0;
  }
  .lmlbk-optin, .lmlbk-help, .lmlbk-result-actions,
  .lmlbk-progress, .lmlbk-progress-bar, .lmlbk-nav { display: none !important; }
  .lmlbk-dim-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── Ergebnis: dezenter Hilfe-Hinweis ──────────────────────── */
.lmlbk-help {
  background: #f5f0e8;
  border-left: 4px solid #c8a96e;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #5a4a2e;
}

.lmlbk-help strong { display: block; margin-bottom: 0.3rem; }
.lmlbk-help p { margin: 0; line-height: 1.55; }

@media (max-width: 480px) {
  .lmlbk-dim-label { flex-basis: 50%; font-size: 0.82rem; }
  .lmlbk-dims-explain { grid-template-columns: 1fr; }
}

/* ── Opt-in ────────────────────────────────────────────────── */
.lmlbk-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0 1.5rem;
}

.lmlbk-optin h3 { margin-top: 0; }

.lmlbk-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.lmlbk-field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.lmlbk-field input[type="email"],
.lmlbk-field input[type="text"] {
  padding: 0.55rem 0.8rem;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.lmlbk-field input:focus {
  outline: none;
  border-color: #2e6f9e;
}

.lmlbk-consent {
  margin-bottom: 0.75rem;
}

.lmlbk-check-label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #444;
  cursor: pointer;
}

.lmlbk-check-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

.lmlbk-thanks {
  background: #eafaf1;
  border-left: 4px solid #27ae60;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.97rem;
}

/* ── Lade-Zustand ──────────────────────────────────────────── */
.lmlbk-loading p {
  color: #666;
  font-style: italic;
}

/* ── Fehler ────────────────────────────────────────────────── */
.lmlbk-error {
  color: #c0392b;
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.lmlbk-hidden { display: none !important; }

/* ── Mobiloptimierung ──────────────────────────────────────── */
@media (max-width: 480px) {
  .lmlbk-step { padding: 1.25rem 1rem; }
  .lmlbk-intro h2 { font-size: 1.3rem; }
  .lmlbk-btn-row { flex-direction: column; }
  .lmlbk-btn { width: 100%; text-align: center; }
}
