/* Entscheidungs-Check – Gestaltung angelehnt an sparring.dr-wellhoefer.de */
:root {
  --bg: #3d3d3d;
  --bg-raised: #464646;
  --bg-sunken: #353535;
  --line: #4f4f4f;
  --text: #e0e0e0;
  --text-strong: #ffffff;
  --text-muted: #a8a8a8;
  --text-faint: #8a8a8a;
  --accent: #8b6f47;
  --accent-hover: #6d5436;
  --accent-soft: rgba(139, 111, 71, 0.18);
  --ok: #7f9c74;
  --warn: #c2a15a;
  --crit: #c27a5a;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

.container { max-width: 800px; margin: 0 auto; padding: 0 40px; }
.container.narrow { max-width: 680px; }

/* Header */
.header { padding: 28px 0; }
.header .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { color: var(--text-muted); text-decoration: none; font-size: 15px; letter-spacing: 0.2px; }
.brand strong { color: var(--text-strong); font-weight: 500; }

/* Buttons */
.cta, .btn {
  display: inline-block;
  padding: 18px 36px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font: 600 18px/1.2 var(--font);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.cta:hover, .btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.secondary { background: transparent; color: var(--text-muted); padding: 18px 8px; font-weight: 400; }
.btn.secondary:hover { color: var(--text-strong); background: transparent; }
.btn.small { padding: 12px 22px; font-size: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Landing */
.hero { padding: 80px 0 120px; text-align: center; }
.hero h1 { font-size: 46px; font-weight: 400; color: var(--text-strong); line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 24px; }
.hero .subline { font-size: 21px; color: #b8b8b8; font-weight: 300; max-width: 34em; margin: 0 auto 16px; }
.hero .meta { font-size: 15px; color: var(--text-faint); margin: 28px 0 0; }

.section { padding: 100px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 30px; font-weight: 400; color: var(--text-strong); margin-bottom: 28px; letter-spacing: -0.3px; }
.section p { color: #c4c4c4; max-width: 38em; margin-bottom: 20px; }
.section p:last-child { margin-bottom: 0; }
.section-cta { text-align: center; }
.section-cta p { margin-left: auto; margin-right: auto; }
.section-cta .cta { margin-top: 28px; }

.quotes { list-style: none; }
.quotes li { color: #c4c4c4; padding: 14px 0 14px 28px; position: relative; }
.quotes li::before { content: '–'; position: absolute; left: 0; color: var(--text-faint); }

.areas { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 12px; }
.areas div { background: var(--bg); padding: 20px 24px; }
.areas strong { display: block; color: var(--text-strong); font-weight: 500; }
.areas span { color: var(--text-muted); font-size: 16px; }

.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 32px; color: #c4c4c4; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; color: var(--text-faint); }
.steps li strong { display: block; color: var(--text-strong); font-weight: 400; }

.note { font-size: 15px; color: var(--text-muted); }

.about-photo { margin: 8px 0 32px; border-radius: var(--radius); overflow: hidden; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 20%; }
.about-name { color: #c4c4c4; }
.about-name strong { color: var(--text-strong); font-weight: 500; font-size: 20px; }
.testimonial { margin: 32px 0 24px; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); color: #d0d0d0; font-style: italic; max-width: 38em; }
.section .note a { color: var(--text-muted); }

footer { padding: 64px 0 48px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--text-faint); }
footer a { color: var(--text-muted); text-decoration: none; margin: 0 14px; }
footer a:hover { color: var(--text-strong); }

/* ---------- App ---------- */
.app { padding-top: 8px; padding-bottom: 80px; min-height: 70vh; }

.progress { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 40px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s ease; }

.step-label { font-size: 14px; color: var(--text-faint); letter-spacing: 0.4px; margin-bottom: 10px; }
.app h1 { font-size: 34px; font-weight: 400; color: var(--text-strong); line-height: 1.25; margin-bottom: 20px; letter-spacing: -0.3px; }
.app h2 { font-size: 24px; font-weight: 400; color: var(--text-strong); line-height: 1.35; margin-bottom: 12px; }
.app h3 { font-size: 15px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.3px; margin: 32px 0 12px; }
.app p { color: #c4c4c4; margin-bottom: 16px; }
.app .lead { font-size: 20px; color: #cfcfcf; }
.hint { font-size: 15px; color: var(--text-muted); }

.statement { font-size: 26px; line-height: 1.4; color: var(--text-strong); margin: 4px 0 32px; font-weight: 400; }

/* Auswahl-Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 16px/1.3 var(--font);
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid #575757;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.chip:hover { border-color: #777; }
.chip[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.chip[aria-pressed='true']::before { content: '✓'; margin-right: 6px; }
.chip:disabled { opacity: 0.35; cursor: not-allowed; }

/* Skala 1–5 */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale button {
  font: 15px/1.3 var(--font);
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid #575757;
  border-radius: var(--radius);
  padding: 14px 6px 12px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 92px;
  transition: background-color 0.15s, border-color 0.15s;
}
.scale button b { font-size: 22px; font-weight: 500; color: var(--text-strong); }
.scale button small { font-size: 13px; color: var(--text-muted); text-align: center; }
.scale button:hover { border-color: #777; }
.scale button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); }
.scale button[aria-pressed='true'] b, .scale button[aria-pressed='true'] small { color: #fff; }

/* Perspektivwechsel */
.persp { margin-top: 36px; padding: 24px; background: var(--bg-sunken); border-radius: var(--radius); }
.persp h2 { font-size: 19px; margin-bottom: 4px; }
.persp-row { display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.persp-row:first-of-type { border-top: 0; }
.persp-role { color: var(--text-strong); font-size: 16px; }
.mini-scale { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-scale button {
  font: 15px var(--font); color: var(--text); background: var(--bg-raised);
  border: 1px solid #575757; border-radius: 6px; min-width: 44px; height: 44px; cursor: pointer;
}
.mini-scale button.unknown { min-width: auto; padding: 0 12px; font-size: 14px; color: var(--text-muted); }
.mini-scale button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* Eingaben */
textarea, input[type='email'], input[type='text'], input[type='password'] {
  width: 100%;
  font: 18px/1.5 var(--font);
  color: var(--text-strong);
  background: var(--bg-sunken);
  border: 1px solid #575757;
  border-radius: var(--radius);
  padding: 14px 16px;
}
textarea { min-height: 140px; resize: vertical; }
textarea:focus, input:focus { outline: none; border-color: var(--accent); }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
@media (max-width: 480px) { .name-row { grid-template-columns: 1fr; } }
.counter { font-size: 13px; color: var(--text-faint); text-align: right; margin-top: 6px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #c4c4c4; margin: 16px 0; cursor: pointer; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }

.toggle { display: inline-flex; border: 1px solid #575757; border-radius: 999px; overflow: hidden; }
.toggle button { font: 15px var(--font); background: transparent; color: var(--text-muted); border: 0; padding: 8px 18px; cursor: pointer; }
.toggle button[aria-pressed='true'] { background: var(--accent); color: #fff; font-weight: 600; }

.nav { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; gap: 16px; }

.callout { border-left: 3px solid var(--accent); background: var(--bg-sunken); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 16px; color: #c4c4c4; margin: 20px 0; }

/* Ergebnis */
.result-block { padding: 36px 0; border-top: 1px solid var(--line); }
.result-block:first-of-type { border-top: 0; padding-top: 8px; }

.profile { display: grid; gap: 18px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: 230px 1fr 64px; gap: 16px; align-items: center; }
.bar-name { font-size: 16px; color: var(--text-strong); }
.bar-name small { display: block; color: var(--text-faint); font-size: 13px; }
.bar-track { position: relative; height: 12px; background: var(--bg-sunken); border-radius: 6px; }
.bar-track .zone { position: absolute; top: -4px; bottom: -4px; border-left: 1px dashed #666; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--accent); }
.bar-fill.stabil { background: var(--ok); }
.bar-fill.auffällig { background: var(--warn); }
.bar-fill.kritisch { background: var(--crit); }
.bar-val { font-size: 15px; color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--text-faint); margin-top: 16px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }

.pattern { margin-bottom: 24px; }
.pattern .tag { display: inline-block; font-size: 13px; letter-spacing: 0.4px; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 3px 12px; margin-bottom: 10px; }
.think { list-style: none; }
.think li { padding: 10px 0 10px 28px; position: relative; color: #d0d0d0; }
.think li::before { content: '?'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }

.loading { display: flex; align-items: center; gap: 14px; color: var(--text-muted); padding: 40px 0; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.error { color: var(--crit); font-size: 15px; margin-top: 10px; }
.success { color: var(--ok); }

.hidden { display: none !important; }

/* Rechtstexte */
.legal h1 { font-size: 34px; font-weight: 400; color: var(--text-strong); margin: 24px 0 28px; }
.legal h2 { font-size: 21px; font-weight: 500; color: var(--text-strong); margin: 36px 0 10px; }
.legal p, .legal li { color: #c4c4c4; font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  body { font-size: 17px; }
  .hero { padding: 40px 0 80px; }
  .hero h1 { font-size: 34px; }
  .hero .subline { font-size: 19px; }
  .section { padding: 72px 0; }
  .section h2 { font-size: 26px; }
  .app h1 { font-size: 28px; }
  .statement { font-size: 22px; }
  .scale { gap: 6px; }
  .scale button { min-height: 80px; padding: 10px 2px; }
  .scale button small { font-size: 11px; }
  .persp { padding: 18px 14px; }
  .persp-row { grid-template-columns: 1fr; gap: 8px; }
  .mini-scale button { min-width: 40px; height: 42px; }
  .bar-row { grid-template-columns: 1fr 52px; gap: 8px 12px; }
  .bar-name { grid-column: 1 / -1; }
  .nav .btn { padding: 16px 26px; }
}
