/* bridgebrAIn Survey – helles Layout mit den Akzenten aus dem Praesentations-CI:
   Poppins Light, Navy fuer Text, Cyan als Leitfarbe, Gruen fuer den Abschluss,
   duenne Akzentbalken vor den Ueberschriften. */

@font-face {
  font-family: Poppins;
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url(/vendor/fonts/poppins-300.woff2) format('woff2');
}
@font-face {
  font-family: Poppins;
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url(/vendor/fonts/poppins-500.woff2) format('woff2');
}

:root {
  --cy: #07a1e2;
  --cy-dark: #0272a3;
  --cy-tint: #e9f6fd;
  --gr: #3fd98b;
  --gr-dark: #1d9a5c;
  --navy: #0a1836;
  --navy-soft: #0d2a4f;
  --ink: #16304f;
  --ink-dim: #52708f;
  --ink-faint: #8299b3;
  --line: #dde8f2;
  --line-strong: #c2d6e8;
  --surface: #ffffff;
  --bg: #eef4fa;
  --radius: 16px;
}

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

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

body {
  min-height: 100vh;
  font-family: Poppins, system-ui, -apple-system, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(ellipse 90% 60% at 50% -10%, #dcebf8 0%, #eef4fa 55%, #eef4fa 100%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.wrap--wide {
  max-width: 1180px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.masthead__logo {
  height: 150px;
  width: auto;
  flex-shrink: 0;
}

/* Der Akzentbalken aus den Praesentationen */
.eyebrow {
  position: relative;
  padding-left: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cy-dark);
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: var(--cy);
}

h1 {
  font-size: clamp(23px, 3.2vw, 32px);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.18;
  color: var(--navy);
  margin-top: 9px;
}

h2 {
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 300;
  line-height: 1.28;
  color: var(--navy);
  margin-bottom: 12px;
}

h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}

p {
  color: var(--ink-dim);
  font-size: 15px;
}

a {
  color: var(--cy-dark);
}

/* ── Karte ──────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(13, 42, 79, 0.07);
}

.card__body {
  padding: clamp(22px, 4vw, 38px);
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px clamp(22px, 4vw, 38px);
  border-top: 1px solid var(--line);
  background: #fbfdff;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ── Fortschritt ────────────────────────────────────────────────────────── */

.progress {
  margin-bottom: 22px;
}

.progress__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.progress__meta strong {
  color: var(--cy-dark);
  font-weight: 500;
}

.progress__track {
  height: 3px;
  background: #dbe7f2;
  border-radius: 3px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--cy);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Fragen ─────────────────────────────────────────────────────────────── */

.question {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.question:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.question__head {
  display: flex;
  gap: 12px;
  margin-bottom: 13px;
}

.question__num {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  padding-top: 4px;
  min-width: 26px;
}

.question__text {
  font-size: 16px;
  color: var(--navy);
  line-height: 1.45;
}

.question__note {
  margin-top: 5px;
  font-size: 12px;
  color: var(--ink-faint);
  font-style: italic;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-left: 38px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.option:hover {
  border-color: var(--line-strong);
  background: #f7fbfe;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option__mark {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
  background: #fff;
  transition: border-color 0.16s ease;
}

.option--multi .option__mark {
  border-radius: 4px;
}

.option__mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: var(--cy);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.option__label {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
}

.option.is-selected {
  border-color: var(--cy);
  background: var(--cy-tint);
  box-shadow: 0 0 0 1px rgba(7, 161, 226, 0.35);
}

.option.is-selected .option__mark {
  border-color: var(--cy);
}

.option.is-selected .option__mark::after {
  opacity: 1;
  transform: scale(1);
}

.option.is-selected .option__label {
  color: var(--navy);
}

.option:focus-within {
  outline: 2px solid rgba(7, 161, 226, 0.55);
  outline-offset: 2px;
}

/* ── Formularfelder ─────────────────────────────────────────────────────── */

.field {
  margin-bottom: 16px;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.field__label span {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-faint);
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='date'],
input[type='number'],
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: #a8bccf;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--cy);
  box-shadow: 0 0 0 3px rgba(7, 161, 226, 0.14);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-dim);
  cursor: pointer;
}

.checkbox input {
  width: 15px;
  height: 15px;
  accent-color: var(--cy);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: #fff;
  background: var(--cy);
  border: 1px solid var(--cy);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.btn:hover:not(:disabled) {
  background: var(--cy-dark);
  border-color: var(--cy-dark);
  box-shadow: 0 6px 18px rgba(7, 161, 226, 0.25);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--ghost {
  color: var(--ink-dim);
  background: transparent;
  border-color: var(--line-strong);
}

.btn--ghost:hover:not(:disabled) {
  color: var(--navy);
  background: #f2f8fd;
  border-color: var(--cy);
  box-shadow: none;
}

.btn--small {
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.btn--danger {
  color: #a32020;
  background: transparent;
  border-color: #e8bcbc;
}

.btn--danger:hover:not(:disabled) {
  color: #fff;
  background: #c53030;
  border-color: #c53030;
  box-shadow: none;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Meldungen ──────────────────────────────────────────────────────────── */

.notice {
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid;
}

.notice--error {
  color: #a32020;
  background: #fdeded;
  border-color: #f3c4c4;
}

.notice--info {
  color: var(--cy-dark);
  background: var(--cy-tint);
  border-color: #bfe4f7;
}

.notice--ok {
  color: var(--gr-dark);
  background: #e8faf1;
  border-color: #bceed6;
}

.hidden {
  display: none !important;
}

/* ── Abschluss ──────────────────────────────────────────────────────────── */

.done {
  text-align: center;
  padding: 24px 0 10px;
}

.done__check {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1.5px solid var(--gr);
  display: grid;
  place-items: center;
  color: var(--gr-dark);
  font-size: 25px;
  background: #f0fcf6;
}

.score {
  display: inline-block;
  margin: 20px 0 16px;
  padding: 20px 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfe;
}

.score__label {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.score__value {
  font-size: 44px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--cy-dark);
  margin: 5px 0 2px;
}

.score__value small {
  font-size: 16px;
  color: var(--ink-faint);
}

.score__band {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gr-dark);
}

.dimscores {
  display: grid;
  gap: 12px;
  margin: 24px auto 0;
  max-width: 460px;
  text-align: left;
}

.dimscore__head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-dim);
  margin-bottom: 5px;
}

.dimscore__head strong {
  color: var(--navy);
  font-weight: 500;
}

.dimscore__track {
  height: 4px;
  background: #dbe7f2;
  border-radius: 4px;
  overflow: hidden;
}

.dimscore__bar {
  height: 100%;
  background: var(--cy);
  border-radius: 4px;
}

/* ── Tabellen (Admin) ───────────────────────────────────────────────────── */

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid #eef4f9;
  color: var(--ink-dim);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}

.tag--open {
  color: var(--gr-dark);
  border-color: #bceed6;
  background: #e8faf1;
}

.tag--closed {
  color: var(--ink-faint);
  border-color: var(--line);
  background: #f4f8fb;
}

.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
}

.linkbox {
  display: flex;
  gap: 8px;
  align-items: center;
}

.linkbox input {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  padding: 7px 10px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.muted {
  color: var(--ink-faint);
  font-size: 12px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.facts {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-faint);
  margin: 18px 0 6px;
}

@media (max-width: 620px) {
  .options {
    margin-left: 0;
  }
  .masthead__logo {
    height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
