/* Stimmprofil-Tool — eine Seite, ein Feld, eine Hauptaktion je Schritt. */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface2: #1c2430;
  --border: #2a3441;
  --text: #e6edf3;
  --dim: #94a3b8;
  --akzent: #2dd4bf;
  --akzent-dunkel: #14b8a6;
  --warn: #fbbf24;
  --fehler: #f87171;
  --rot: #ef4444;
  --blau: #3b82f6;
  --gruen: #22c55e;
  --gelb: #eab308;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--akzent); }

.huelle { max-width: 720px; margin: 0 auto; padding: 48px 20px 80px; }

header.kopf { margin-bottom: 40px; }
header.kopf h1 { font-size: 32px; line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.02em; }
header.kopf p.lead { font-size: 18px; color: var(--dim); margin: 0; max-width: 58ch; }

.karte {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.schritt-nr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--akzent); color: #05221f;
  font-size: 14px; font-weight: 700; margin-right: 10px;
}
.karte h2 { font-size: 18px; margin: 0 0 6px; display: flex; align-items: center; }
.karte .hinweis { font-size: 14px; color: var(--dim); margin: 0 0 16px; }

textarea, input[type="text"], input[type="email"], input[type="url"] {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; font: inherit; font-size: 15px;
}
textarea { min-height: 220px; resize: vertical; line-height: 1.55; }
textarea:focus, input:focus { outline: 2px solid var(--akzent); outline-offset: -1px; }

label.feld { display: block; margin-bottom: 14px; }
label.feld > span { display: block; font-size: 13px; color: var(--dim); margin-bottom: 5px; }

input[type="file"] { font-size: 14px; color: var(--dim); max-width: 100%; }

.zaehler { font-size: 13px; color: var(--dim); margin-top: 8px; }
.zaehler.genug { color: var(--akzent); }

button.haupt {
  width: 100%; padding: 15px 20px; border: none; border-radius: 10px;
  background: var(--akzent); color: #05221f;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
button.haupt:hover { background: var(--akzent-dunkel); }
button.haupt:disabled { opacity: .45; cursor: not-allowed; }

button.neben {
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--dim); font: inherit; font-size: 14px; cursor: pointer;
}
button.neben:hover { color: var(--text); border-color: var(--dim); }

.zustimmung { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--dim); margin-top: 14px; }
.zustimmung input { margin-top: 3px; flex: none; }

.meldung { margin-top: 14px; font-size: 14px; border-radius: 8px; padding: 12px 14px; display: none; }
.meldung.sichtbar { display: block; }
.meldung.ok { background: rgba(45,212,191,.1); border: 1px solid var(--akzent); color: var(--text); }
.meldung.fehler { background: rgba(248,113,113,.1); border: 1px solid var(--fehler); color: var(--text); }
.meldung.arbeit { background: var(--surface2); border: 1px solid var(--border); color: var(--dim); }

.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Archetypen */
.archetypen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.arche {
  border: 1px solid var(--border); border-radius: 10px; padding: 14px;
  background: var(--surface2); cursor: pointer; text-align: left;
  color: var(--text); font: inherit;
}
.arche:hover { border-color: var(--dim); }
.arche[aria-pressed="true"] { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent) inset; }
.arche .punkt { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.arche.rot .punkt { background: var(--rot); }
.arche.blau .punkt { background: var(--blau); }
.arche.gruen .punkt { background: var(--gruen); }
.arche.gelb .punkt { background: var(--gelb); }
.arche strong { font-size: 15px; display: block; margin-bottom: 4px; }
.arche small { color: var(--dim); font-size: 13px; line-height: 1.5; display: block; }

input[type="range"] { width: 100%; accent-color: var(--akzent); }

table.achsen { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
table.achsen td { padding: 6px 0; border-bottom: 1px solid var(--border); }
table.achsen td:first-child { color: var(--dim); width: 38%; }
.balken { height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.balken > i { display: block; height: 100%; background: var(--akzent); }

pre.profil {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px; overflow-x: auto; font-size: 12.5px; line-height: 1.5; max-height: 380px;
}

.fuss { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border);
        font-size: 13px; color: var(--dim); }
.fuss a { margin-right: 16px; }

.platzhalter {
  background: rgba(251,191,36,.08); border: 1px solid var(--warn);
  border-radius: 8px; padding: 14px; font-size: 14px; margin-bottom: 20px;
}

@media (max-width: 560px) {
  header.kopf h1 { font-size: 26px; }
  .huelle { padding: 32px 16px 60px; }
}
