/* Wegweiser - rentnerfreundlicher App-Layer. Nutzt ausschliesslich web-style-Tokens. */

body { margin: 0; }
.wz-main { display: flex; flex-direction: column; height: calc(100vh - 58px); }

/* Karte gross */
.wz-map { width: 100%; height: 46vh; min-height: 280px; background: var(--surface-2); }

/* Bedien-Panel */
.wz-panel { flex: 1; overflow-y: auto; padding: var(--space-4); background: var(--bg); }

.wz-step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-4);
  margin-bottom: var(--space-4); box-shadow: var(--shadow-sm);
}
.wz-step-kopf {
  font-size: var(--font-size-xl); font-weight: 700;
  margin-bottom: var(--space-3); display: flex; align-items: center; gap: var(--space-3);
}
.wz-num {
  display: inline-grid; place-items: center; width: 1.9em; height: 1.9em;
  border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent);
  font-size: 0.85em; flex: none;
}

.wz-row { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); flex-wrap: wrap; }
.wz-input { flex: 1; min-width: 180px; }

/* Grosse, gut treffbare Bedienelemente (rentnerfreundlich) */
.wz-main .m-btn { min-height: 52px; font-size: var(--font-size-lg); padding: 0 var(--space-4); }
.wz-btn2 { flex: 1 1 40%; background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.wz-gross { width: 100%; min-height: 60px; font-size: var(--font-size-xl); }
.wz-aktiv { outline: 3px solid var(--accent); outline-offset: 1px; }

.wz-info { color: var(--text-soft); font-size: var(--font-size-base); margin-top: var(--space-2); min-height: 1.2em; }
.wz-wahl { font-weight: 700; margin: var(--space-2) 0; }
#start-info .wz-treffer-item { margin-top: var(--space-2); }

.wz-treffer { margin-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.wz-treffer-item {
  text-align: left; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); font: inherit;
  border-radius: var(--radius-md); padding: var(--space-3); cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; width: 100%;
}
.wz-treffer-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.wz-t-name { font-weight: 700; font-size: var(--font-size-lg); }
.wz-t-meta { color: var(--text-mute); font-size: var(--font-size-base); }
.wz-leer { color: var(--text-mute); padding: var(--space-3); }

/* Opening state uses the existing .m-pill component - no second colour system.
   goals/decisions/0001: the WORD carries the meaning, colour only supports it,
   so it stays readable for anyone who cannot tell red from green. */
.wz-t-zustand { align-self: flex-start; margin: 2px 0; }

.wz-btn-weg:disabled { opacity: 0.45; }
.wz-weg-info { margin-top: var(--space-3); font-size: var(--font-size-lg); }
.wz-hint { color: var(--text-mute); font-size: var(--font-size-base); margin-top: var(--space-1); }

.wz-hilfe {
  position: fixed; inset: 0; z-index: var(--z-modal); background: var(--surface);
  padding: var(--space-6); overflow-y: auto; font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}
.wz-hilfe p { margin: 0 0 var(--space-4); }

.wz-hinweis {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: var(--space-5);
  z-index: var(--z-toast); background: var(--text); color: var(--bg);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-pill);
  font-size: var(--font-size-lg); box-shadow: var(--shadow-lg); max-width: 90vw; text-align: center;
}

/* Desktop: Karte und Panel nebeneinander */
@media (min-width: 800px) {
  .wz-main { flex-direction: row; }
  .wz-map { height: 100%; flex: 1; min-height: 0; }
  .wz-panel { flex: 0 0 400px; }
}
