/* pro akustik SWOT-Werkstatt – Gestaltung nach der Mastervorlage HT2026 */
:root {
  --nacht: #0F1E30;
  --ozean: #02329C;
  --bernstein: #E5620C;
  --elfenbein: #FAF8F5;
  --quarz: #9A8C82;
  --karte: #F1F3F7;
  --linie: #E1E4EB;
  --text-2: #4A5568;
  --weiss: #FFFFFF;
  --radius: 14px;
  --font-head: Arial, Helvetica, sans-serif;
  --font-body: Calibri, Carlito, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--weiss);
  color: var(--nacht);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .head { font-family: var(--font-head); font-weight: 700; margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.kicker {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bernstein);
  letter-spacing: .01em;
}
.kicker--ozean { color: var(--ozean); }
.leitfrage {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  color: var(--ozean);
}

/* Buchstabenkreis wie auf Folie 3 */
.letter {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  width: 2.6em; height: 2.6em; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700;
  color: var(--weiss);
  font-size: 1em;
}
.letter--ozean { background: var(--ozean); }
.letter--bernstein { background: var(--bernstein); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 10px;
  padding: .8em 1.3em;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  cursor: pointer;
  background: var(--ozean); color: var(--weiss);
  text-decoration: none;
  transition: transform .08s ease, opacity .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--cta { background: var(--bernstein); }
.btn--ghost { background: transparent; color: var(--ozean); box-shadow: inset 0 0 0 1.5px var(--linie); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ozean); }
.btn--nacht { background: var(--nacht); }
.btn--danger { background: transparent; color: #B42318; box-shadow: inset 0 0 0 1.5px #F2C7C2; }
.btn--sm { padding: .45em .8em; font-size: .82rem; border-radius: 8px; }
.btn--block { width: 100%; }

.notice {
  background: var(--nacht); color: var(--weiss);
  border-radius: 8px;
  padding: .7em 1em;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
}
.muted { color: var(--quarz); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--nacht); color: var(--weiss);
  padding: .7em 1.1em; border-radius: 10px;
  font-size: .95rem; box-shadow: 0 8px 24px rgba(15, 30, 48, .25);
  z-index: 50; max-width: calc(100% - 32px);
}

/* ------------------------------------------------------------ Teilnehmer */
.mobile {
  max-width: 560px; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: 0 16px;
}
.mobile-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 12px;
}
.mobile-top img { height: 26px; width: auto; }
.timer-chip {
  font-family: var(--font-head); font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--bernstein);
  background: #FDF0E7;
  border-radius: 999px; padding: .25em .75em;
  font-size: .95rem;
}
.timer-chip.is-over { color: var(--quarz); background: var(--karte); }
.mobile-main { flex: 1; padding: 12px 0 24px; }
.mobile-foot {
  padding: 14px 0 20px;
  font-size: .82rem; color: var(--quarz);
  border-top: 1px solid var(--linie);
}
.screen-title { font-size: 1.65rem; line-height: 1.15; text-transform: uppercase; margin: .2em 0 .25em; }
.screen-lead { font-size: 1.05rem; color: var(--text-2); margin: .4em 0 1.2em; }
.screen-lead .leitfrage { display: block; font-size: 1.2rem; margin-bottom: .4em; }

.field-head { display: flex; gap: 14px; align-items: center; margin: 4px 0 14px; }
.field-head .letter { font-size: 1.15rem; }
.field-head h1 { font-size: 1.5rem; line-height: 1.1; }
.field-head .en { font-family: var(--font-head); font-style: italic; color: var(--text-2); font-size: .9rem; }
.frage-card {
  background: var(--karte); border-radius: var(--radius);
  padding: 16px 18px; font-size: 1.15rem; line-height: 1.35;
  margin-bottom: 16px;
}
.frage-card .kicker { display: block; font-size: .72rem; margin-bottom: .5em; }
.frage-leit { display: block; font-family: var(--font-head); font-style: italic; font-weight: 700; color: var(--ozean); font-size: .95rem; margin-bottom: .2em; }
.frage-text { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.frage-text::first-letter { text-transform: uppercase; }

.composer-hint { margin: 0 0 8px; font-size: .92rem; color: var(--text-2); }
.composer-hint strong { color: var(--nacht); }
.keyword-input {
  width: 100%;
  border: 1.5px solid var(--linie); border-radius: 12px;
  padding: 12px 14px; background: var(--weiss);
  font-size: 1.1rem; line-height: 1.3;
}
.keyword-input:focus { outline: none; border-color: var(--ozean); box-shadow: 0 0 0 3px rgba(2, 50, 156, .12); }
.composer-row { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 12px; font-size: .85rem; color: var(--quarz); }
.mine { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.mine li {
  background: var(--karte); border-radius: 10px; padding: 10px 12px 10px 14px;
  display: flex; gap: 10px; align-items: flex-start;
  border-left: 4px solid var(--ozean);
}
.mine.tone-bernstein li { border-left-color: var(--bernstein); }
.mine li .txt { flex: 1; word-break: break-word; }
.mine li .del {
  flex: none; border: 0; background: transparent; color: var(--quarz); cursor: pointer;
  width: 32px; height: 32px; margin: -6px -6px -6px 0; border-radius: 8px; font-size: 1rem; line-height: 1;
}
.mine li .del:hover, .mine li .del:focus-visible { color: var(--nacht); background: var(--weiss); }
.mine-label { font-family: var(--font-head); font-weight: 700; font-size: .78rem; text-transform: uppercase; color: var(--text-2); margin-top: 18px; }

.wait {
  text-align: center; padding: 40px 8px 20px;
}
.wait .big-icon {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--karte); color: var(--ozean);
}
.wait h1 { font-size: 1.45rem; text-transform: uppercase; margin-bottom: .4em; }
.wait p { color: var(--text-2); margin: 0 auto; max-width: 30ch; }
.swot-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0 0; text-align: left; }
.swot-mini div { background: var(--karte); border-radius: 10px; padding: 10px; display: flex; gap: 10px; align-items: center; font-family: var(--font-head); font-weight: 700; font-size: .92rem; }
.swot-mini .letter { font-size: .72rem; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--bernstein); display: inline-block; margin-right: 6px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* Bewertung */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; position: sticky; top: 0; background: var(--weiss); padding: 8px 0; z-index: 5; }
.tab {
  border: 0; background: var(--karte); border-radius: 10px; padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer;
  font-size: .75rem; color: var(--text-2);
}
.tab .letter { font-size: .7rem; }
.tab .dots { display: flex; gap: 3px; }
.tab .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--linie); }
.tab .dots i.on { background: var(--bernstein); }
.tab.is-active { background: var(--nacht); color: var(--weiss); }
.vote-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.vote-item {
  width: 100%; text-align: left; border: 1.5px solid transparent; background: var(--karte);
  border-radius: 12px; padding: 12px 14px; cursor: pointer;
  display: flex; gap: 12px; align-items: center; font-size: 1rem; line-height: 1.3;
}
.vote-item .pt {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--linie); background: var(--weiss);
  display: flex; align-items: center; justify-content: center; color: var(--weiss);
}
.vote-item.is-on { border-color: var(--bernstein); background: #FDF0E7; }
.vote-item.is-on .pt { background: var(--bernstein); box-shadow: none; }
.vote-item:disabled { opacity: .5; cursor: not-allowed; }
.vote-item .n { margin-left: auto; font-size: .78rem; color: var(--quarz); white-space: nowrap; }
.vote-bar {
  position: sticky; bottom: 0; background: var(--weiss); padding: 12px 0 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem;
}
.save-state { color: var(--quarz); font-size: .85rem; }
.save-state.ok { color: #1F7A4D; }

/* Ergebnis mobil */
.res-block { margin-bottom: 18px; }
.res-block h2 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 8px; }
.res-block h2 .letter { font-size: .7rem; }
.res-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.res-row .rank { font-family: var(--font-body); font-weight: 700; color: var(--bernstein); }
.res-row .pts { font-size: .85rem; color: var(--quarz); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ Start */
.start-wrap { max-width: 420px; margin: 0 auto; padding: 48px 16px; }
.start-wrap img { height: 34px; margin-bottom: 40px; }
.start-wrap h1 { text-transform: uppercase; font-size: 1.8rem; margin-bottom: .3em; }
.code-input {
  width: 100%; border: 1.5px solid var(--linie); border-radius: 12px; padding: 14px 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: .12em; text-transform: uppercase;
  margin: 18px 0 12px;
}
.code-input:focus { outline: none; border-color: var(--ozean); }
.form-error { color: #B42318; font-size: .9rem; min-height: 1.3em; }
