/* ==========================================================================
   Mediencheck – Styles
   Schriften: Passion One (Überschriften) + Source Sans Pro (Text), lokal.
   ========================================================================== */

@font-face {
  font-family: 'Passion One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/passion-one-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Passion One';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/passion-one-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-sans-pro-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-sans-pro-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/source-sans-pro-700.woff2') format('woff2');
}

:root {
  --green: #4e9a47;
  --green-dark: #3f863a;
  --ink: #3f3f3f;
  --ink-soft: #484848;
  --label: #757575;
  --line: #cfcfcf;
  --radio-off: #e2e2e2;
  --bar: #e2e2e2;
  --track: #f1f1f1;
  --orange: #d25c1f;
  --page-max: 1320px;
  /* Fallback, falls die Schriftdateien nicht neben der HTML-Datei liegen */
  --font-text: 'Source Sans Pro', 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Passion One', 'Arial Narrow', Impact, system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
}

[hidden] { display: none !important; }

.app {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* ------------------------------------------------------------ Fortschritt */
.progress {
  max-width: 560px;
  margin: 0 auto 48px;
}
.progress__status {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.progress__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.progress__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  color: var(--radio-off);
}
.progress__mark svg { display: block; }
.progress__bar {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--radio-off);
}
.progress__step--done .progress__mark { color: var(--green); }
.progress__step--done .progress__bar { background: var(--green); }
.progress__step--current .progress__mark { color: #7cc574; }
.progress__step--current .progress__bar { background: #7cc574; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  border-radius: 999px;
  padding: 18px 28px;
  transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:focus-visible { outline: 3px solid #9fd29a; outline-offset: 2px; }
.btn:disabled { opacity: .7; cursor: progress; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--secondary {
  background: #fff;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
  padding: 16px 26px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.nav--start { justify-content: center; margin-top: 8px; }
.nav--finish { margin-top: 48px; }

/* ---------------------------------------------------------------- Abschluss */
.finish {
  max-width: 640px;
  margin: 72px auto 0;
  text-align: center;
}
.finish__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  color: var(--green);
  margin: 12px 0 0;
}
.finish__text {
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: 18px;
}
.finish__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}
.btn--large { padding: 18px 36px; font-size: 18px; }
.finish-status { color: #b42318; margin: 20px auto 0; }

/* ---------------------------------------------------------------- Danke */
.done {
  max-width: 640px;
  margin: 56px auto 0;
  text-align: center;
}
.done__icon { color: var(--green); }
.done__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  color: var(--green);
  margin: 24px 0 0;
}
.done__text {
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: 18px;
}

/* ---------------------------------------------------------------- Start */
.hero { text-align: center; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: .5px;
  color: var(--green);
  margin: 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__sub {
  max-width: 780px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}
h1:focus, h2:focus, h3:focus, h4:focus { outline: none; }

.start {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  max-width: 640px;
  margin: 96px auto 0;
}
.eyebrow {
  font-weight: 700;
  color: var(--green);
  font-size: 13.5px;
  letter-spacing: .4px;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.h-intro {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 24px;
}
.start__text { color: var(--ink-soft); font-size: 16px; margin: 0; max-width: 600px; }

.facts {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 16px;
  color: var(--ink-soft);
}
.facts li { position: relative; padding-left: 32px; }
.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .07);
  padding: 28px 32px;
}

/* ---------------------------------------------------------------- Fragen */
.q-head { margin: 24px 0 32px; }
h1:focus, h2:focus, h3:focus, h4:focus { outline: none; }
.q-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 24px;
}
.q-sub { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* Matrix (Aussagen / Apps / Funktionen) */
.matrix {
  display: grid;
  grid-template-columns: minmax(0, 36%) minmax(0, 64%);
  align-items: center;
}

/* Klassische Variante: Aussage links, Antwortleiste rechts */
.matrix--classic { grid-template-columns: minmax(0, 46%) minmax(0, 54%); }
.matrix--classic .matrix__q { border-bottom: 0; padding: 12px 28px 12px 0; }
.matrix--classic .matrix__row-options { border-bottom: 1px solid var(--line); }
.matrix--classic .ledger::before { left: 12px; right: 12px; }

.matrix--classic .ledger__caption { font-size: 13.5px; }
.matrix--classic .ledger__opt { width: 24px; height: 24px; flex-basis: 24px; }
.matrix__head {
  grid-column: 1 / -1;
}
.matrix__q {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.3;
  padding: 18px 24px 18px 0;
  border-bottom: 1px solid var(--line);
  align-self: center;
}
/* Frage links in der 1. Spalte, Antwortleiste rechts darüber */
.matrix__q { grid-column: 1; }
.matrix__row-options {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-self: center;
}
.matrix__row-options { grid-column: 2; }

/* Schieberegler-artige Optionsleiste */
.ledger {
  position: relative;
  display: flex;
  justify-content: space-between;
  height: 32px;
  align-items: center;
  padding: 0;
}
/* Kopfzeile mit den Antwortlabels.
   Jedes Label sitzt in einem Container, der mittig über seinem Punkt liegt
   (linke Kante = x des Punkts) und bis kurz vor den nächsten Punkt reicht.
   Die äußeren Labels werden an der Antwortleiste ausgerichtet und laufen nach
   innen – wie in der Vorlage („voll und ganz“ links, „gar nicht“ rechts). */
.matrix__head { position: relative; height: 40px; display: flex; align-items: flex-end; padding-bottom: 10px; }
.ledger-labels { position: relative; width: 100%; height: 100%; }
.ledger__slot {
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ledger__caption {
  font-size: 14px;
  line-height: 1.25;
  color: #3f3f3f;
  text-align: center;
  white-space: normal;
}
.ledger::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  background: var(--track);
  border-radius: 2px;
}
.ledger__opt {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}
.ledger__opt input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.ledger__dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--radio-off);
  transition: background-color .15s ease;
}
.ledger__opt:hover .ledger__dot { background: #d3d3d3; }
.ledger__opt input:checked + .ledger__dot { background: var(--green); }
.ledger__opt input:focus-visible + .ledger__dot {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #9fd29a;
}
.ledger__opt:hover input:checked + .ledger__dot { background: var(--green-dark); }

.ledger__text { display: none; }

/* ------------------------------------------------------------ Zugang */
.gate {
  max-width: 440px;
  margin: 12vh auto 0;
  text-align: center;
}
.gate__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 9vw, 64px);
  line-height: 1;
  color: var(--green);
  margin: 0;
}
.gate__sub { color: var(--ink-soft); font-size: 18px; margin: 12px 0 0; }
.gate__card { margin-top: 32px; padding: 28px; text-align: left; }
.gate__card .input { height: 52px; font-size: 17px; }
.gate__card .input.is-invalid { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192, 57, 43, .18); }
.gate__card .error { color: #c0392b; font-size: 14px; margin: 10px 0 0; }
.gate__btn { width: 100%; margin-top: 20px; }

.card--age {
  margin-top: 0;
  padding: 32px;
}
.card--age .field-label { font-size: 17px; margin-bottom: 12px; }
.card--age .select { height: 52px; font-size: 17px; }
.card--age .error { color: #c0392b; font-size: 14px; margin: 10px 0 0; }
.card--age.is-invalid, .card--age:has(.select.is-invalid) { box-shadow: 0 0 0 2px #c0392b, 0 4px 18px rgba(0, 0, 0, .07); }
.select.is-invalid,
.select.is-invalid:focus {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .18);
}

/* Pflichtfeld-Hinweis unter den Fragen */
.required-hint {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fdecea;
  color: #a3291c;
  font-size: 15px;
  font-weight: 600;
}
.required-hint::before { content: '! '; font-weight: 700; }

/* Offene Fragen werden rot markiert, bis sie beantwortet sind */
.matrix__q.is-missing {
  color: #b3271a;
  box-shadow: inset 3px 0 0 #c0392b;
  padding-left: 12px;
  border-bottom-color: #e6a49d;
}
.matrix__q.is-missing + .matrix__row-options { border-bottom-color: #e6a49d; }
.apps-row select.is-missing { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192, 57, 43, .18); }
.input.is-missing { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192, 57, 43, .18); }

/* Auswahlfeld (Apps) */
.select {
  width: 100%;
  appearance: none;
  font-family: var(--font-text);
  font-size: 16px;
  color: #3b3b3b;
  background: #fff;
  border: 1px solid #9a9a9a;
  border-radius: 3px;
  padding: 12px 40px 12px 12px;
  height: 46px;
  background-image: linear-gradient(45deg, transparent 50%, #444 50%), linear-gradient(135deg, #444 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 15px) 50%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}
.select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(78, 154, 71, .18); }
.select:disabled { background-color: #f4f4f4; color: #9a9a9a; }

/* Apps-Auswahl */
.apps-rows { display: grid; gap: 8px; transition: opacity .15s ease; }
.apps-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; }
.apps-row__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  text-align: center;
  color: var(--ink);
}
.apps-row .select { height: 40px; padding-top: 8px; padding-bottom: 8px; }

.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 16px;
  color: var(--ink-soft);
  cursor: pointer;
}
.check {
  appearance: none;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid #7a7a7a;
  border-radius: 4px;
  background: #fff;
  margin: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.check:checked { background: var(--green); border-color: var(--green); }
.check:checked::after {
  content: '';
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: translateY(-1px) rotate(45deg);
}
.check:focus-visible { outline: 3px solid #9fd29a; outline-offset: 2px; }

.field-label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: #333;
  margin-bottom: 8px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.input {
  width: 100%;
  font-family: var(--font-text);
  font-size: 16px;
  background: #fff;
  border: 1px solid #9a9a9a;
  border-radius: 3px;
  padding: 10px 12px;
  height: 46px;
  color: #3b3b3b;
}
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(78, 154, 71, .18); }
.input:disabled { background: #f4f4f4; color: #9a9a9a; }
.is-disabled { opacity: .45; }

/* ---------------------------------------------------------------- Ergebnis */
.page--result { padding-top: 16px; }
.result-head {
  text-align: center;
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--line, #e6e6e6);
}
.result-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  color: var(--green);
  margin: 16px 0 0;
}
.result-intro {
  max-width: 840px;
  margin: 28px auto 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}
.result-note {
  max-width: 840px;
  margin: 20px auto 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff4e6;
  color: #8a4b12;
  font-size: 15px;
}
.btn--small { padding: 8px 16px; font-size: 14px; }
.start__privacy { color: var(--ink-soft); font-size: 14px; margin: 16px 0 0; max-width: 600px; }

.result-section { margin-top: 72px; }
.result-section__eyebrow {
  font-weight: 700;
  color: var(--green);
  font-size: 13.5px;
  letter-spacing: .4px;
  text-align: center;
  margin: 0 0 12px;
}
.result-section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  text-align: center;
  color: var(--ink);
  margin: 0 0 16px;
}
.legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  margin: 0 0 40px;
  color: var(--ink);
}
.legend__item { display: flex; align-items: center; gap: 8px; }
.legend__label { font-weight: 700; }
.legend__dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; flex: 0 0 18px; }
.legend__dot--you { background: var(--green); }
.legend__dot--study { background: var(--radio-off); }
.legend__sep { width: 1px; height: 26px; background: #6b6b6b; }

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 64px;
}
.block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 56px;
  align-items: start;
}
.chart--wide { grid-column: 1 / -1; }
.chart__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
  margin: 0 auto 28px;
  max-width: 560px;
}

/* Antwortskala (Kopfzeile der Fragen-Matrix) */
/* Antworten ab 7 Optionen: je Antwort eine Zeile */
.rows-chart {
  display: grid;
  grid-auto-rows: min-content;
  gap: 4px;
  max-width: 460px;
  margin: 0 auto;
}
.rows-chart__row {
  display: grid;
  grid-template-columns: minmax(0, 132px) 18px 1fr 56px;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}
.rows-chart__label {
  font-size: 14px;
  text-align: right;
  color: var(--ink);
  line-height: 1.2;
}
.rows-chart__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--radio-off);
  justify-self: center;
}
.rows-chart__dot--you { background: var(--green); }
.rows-chart__bar {
  display: flex;
  align-items: center;
  height: 20px;
  border-left: 1px solid #efefef;
  padding-left: 12px;
}
.rows-chart__bar span {
  display: block;
  height: 20px;
  background: var(--bar);
  width: var(--w);
}
.rows-chart__val {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
}

/* Lieblings-Apps */
.picks { text-align: center; }
.picks__title { font-weight: 700; font-size: 16px; margin: 0 0 12px; }
.picks__list { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.pick { width: 132px; }
.pick__name { font-size: 16px; color: var(--ink); margin-bottom: 8px; height: 24px; }
.pick__badge {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 4px;
  height: 38px;
  display: grid;
  place-items: center;
}

.bars { margin-top: 40px; }
.bars__study-label { text-align: center; color: var(--ink-soft); font-size: 16px; margin: 0 0 20px; }
.bars__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  min-height: 26px;
}
.bars__name { font-size: 14px; text-align: right; padding-right: 16px; color: var(--ink); }
.bars__track { display: grid; grid-template-columns: 1fr; align-items: center; }
.bars__fill { height: 20px; background: var(--bar); grid-row: 1; grid-column: 1; }
.bars__val {
  grid-row: 1;
  grid-column: 1;
  justify-self: start;
  margin-left: var(--bar-len);
  padding-left: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
}
.bars__val--inside {
  margin-left: calc(var(--bar-len) - var(--value-w) + 8px);
  padding-left: 0;
  text-align: right;
}
.bars__axis {
  position: relative;
  height: 26px;
  border-top: 1px solid #808080;
  margin-left: 180px;
  margin-right: 56px;
  font-size: 14px;
  color: var(--ink);
}
.bars__tick { position: absolute; top: 4px; transform: translateX(-50%); }

/* Bildschirmzeit */
.media-bars { max-width: 760px; margin: 0 auto; }
.media-bars__row {
  display: grid;
  grid-template-columns: 172px 1fr;
  align-items: center;
  min-height: 28px;
}
.media-bars__label { font-size: 14px; text-align: right; padding-right: 16px; color: var(--ink); }
.media-bars__track { display: grid; grid-template-columns: 1fr; align-items: center; }
.media-bars__fill { height: 20px; grid-row: 1; grid-column: 1; }
.media-bars__fill--you { background: var(--green); }
.media-bars__fill--study { background: var(--bar); }
.media-bars__val {
  grid-row: 1;
  grid-column: 1;
  justify-self: start;
  margin-left: var(--bar-len);
  padding-left: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
}
.media-bars__val--inside {
  color: #fff;
  margin-left: calc(var(--bar-len) - 162px);
  padding-left: 0;
}
.media-bars__axis {
  position: relative;
  height: 26px;
  border-top: 1px solid #808080;
  margin-left: 172px;
  margin-right: 80px;
  font-size: 14px;
}
.media-bars__tick { position: absolute; top: 4px; transform: translateX(-50%); }
.muted { color: var(--label); font-style: italic; font-size: 15px; text-align: center; margin: 12px 0 0; }

/* ---------------------------------------------------------------- Druck */
@media print {
  .nav, .finish__actions { display: none !important; }
  .app { max-width: none; padding: 0; }
  .progress { display: none; }
  .result-section { break-inside: avoid; }
}

/* ---------------------------------------------------------------- Responsiv */
@media (max-width: 980px) {
  .charts, .block-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .start { margin-top: 56px; }
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .app { padding: 32px 20px 72px; }
}

@media (max-width: 760px) {
  /* Fortschritt bleibt beim Scrollen oben sichtbar */
  .progress {
    position: sticky;
    top: 0;
    z-index: 20;
    max-width: none;
    margin: -12px -20px 28px;
    padding: 12px 20px 14px;
    background: #fff;
    box-shadow: 0 6px 12px -8px rgba(0, 0, 0, .18);
  }
  .progress__list { gap: 14px; }
  .progress__step { gap: 8px; }
  .progress__mark { height: 22px; font-size: 18px; }
  .progress__mark svg { width: 22px; height: 22px; }
  .progress__bar { height: 7px; }
  /* Auf dem Handy: Frage über der Antwortleiste, eine Spalte */
  .matrix, .matrix--classic { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .matrix__head { display: none; }
  .matrix__q,
  .matrix--classic .matrix__q {
    grid-column: 1;
    border-bottom: 0;
    padding: 4px 0;
    font-size: 17px;
  }
  .matrix__q.is-missing,
  .matrix--classic .matrix__q.is-missing { padding-left: 12px; }
  .matrix__row-options,
  .matrix--classic .matrix__row-options {
    grid-column: 1;
    padding: 4px 0 22px;
  }
  /* Antworten untereinander wie in der Vorlage: Punkt links, Text daneben,
     die Punkte durch eine senkrechte Linie verbunden */
  .ledger,
  .matrix--classic .ledger {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    height: auto;
    padding: 6px 0 0;
  }
  .ledger::before,
  .matrix--classic .ledger::before {
    left: 14px;
    right: auto;
    width: 4px;
    height: auto;
    top: 22px;
    bottom: 16px;
    margin-top: 0;
  }
  .ledger__opt,
  .matrix--classic .ledger__opt {
    display: flex;
    align-items: center;
    gap: 16px;
    width: auto;
    height: auto;
    min-height: 32px;
    flex: 0 0 auto;
  }
  .ledger__dot {
    position: relative;
    inset: auto;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
  }
  .ledger__text {
    display: block;
    font-size: 17px;
    line-height: 1.3;
    color: var(--ink-soft);
  }
  .scale__label { font-size: 11px; }
  .rows-chart__row { grid-template-columns: minmax(0, 104px) 16px 1fr 44px; gap: 6px; }
  .rows-chart__label { font-size: 12px; }
  .rows-chart__val { font-size: 13px; }
  .bars__row { grid-template-columns: 104px 1fr; }
  .bars__axis { margin-left: 104px; margin-right: 48px; }
  .media-bars__row { grid-template-columns: 96px 1fr; }
  .media-bars__axis { margin-left: 96px; margin-right: 56px; }
  .media-bars__val--inside { margin-left: calc(var(--bar-len) - 156px); }
  .q-title { font-size: 26px; }
  .h-intro { font-size: 32px; }
  .result-title { font-size: 36px; }
  .result-section__title { font-size: 26px; }
  .chart__title { font-size: 18px; }
  .apps-row { grid-template-columns: 36px 1fr; }
  .apps-row__num { font-size: 22px; }
  .btn { padding: 15px 22px; font-size: 15px; }
  .card { padding: 20px; }
  .legend { flex-wrap: wrap; gap: 8px; font-size: 14px; }
  .legend__sep { display: none; }
}

@media (max-width: 460px) {
  .pick { width: 92px; }
  .pick__name { font-size: 14px; }
  .scale__label { font-size: 10px; }
  .rows-chart__row { grid-template-columns: minmax(0, 92px) 14px 1fr 40px; }
  .bars__row { grid-template-columns: 80px 1fr; }
  .bars__axis { margin-left: 80px; margin-right: 44px; }
}

/* Barrierefreiheit: reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
