.ti {
  --ti-rot: #A3402B;
  --ti-gelb: #A9741A;
  --ti-gruen: var(--gruen, #005348);
  --ti-papier: var(--papier, #F4F1EA);
  --ti-dunkel: var(--dunkel, #002B2A);
  --ti-salbei: var(--salbei, #A8C5BC);
  --ti-meta: var(--meta, #51605B);
  --ti-hell: var(--wp--preset--color--hellflaeche, #E8F0ED);
  --ti-polster: clamp(1.25rem, 5vw, 4rem);
  --ti-ease: var(--ease, cubic-bezier(.22, 1, .36, 1));
}

.ti-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ti-kopf { padding: calc(var(--kopfhoehe, 5rem) + var(--r7, 5rem)) 0 var(--r6, 4rem); }
.ti-kopf__titel {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  max-width: 14em;
  margin-bottom: var(--r4, 2rem);
}
.ti-kopf__text { margin-bottom: var(--r4, 2rem); }

.ti-fakten {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ti-salbei);
}
.ti-fakten li { display: inline-flex; align-items: center; white-space: nowrap; }
.ti-fakten li::before {
  content: "";
  width: .75rem;
  height: 1px;
  margin-right: .625rem;
  background: var(--ti-salbei);
}

.ti-buehne { padding-bottom: var(--r9, 8rem); }

.ti-karte {
  max-width: 52rem;
  padding: var(--ti-polster);
  background: var(--ti-papier);
  color: var(--ti-dunkel);
  font-size: 1.0625rem;
  scroll-margin-top: calc(var(--kopfhoehe, 5rem) + 1.5rem);
}
.ti-karte:focus { outline: none; }
.ti-karte :is(h2, h3, h4) { color: var(--ti-dunkel); }
.ti-karte :focus-visible { outline: 2px solid var(--ti-dunkel); outline-offset: 3px; }
.ti-karte :is(h2, h3, h4)[tabindex]:focus { outline: none; }

.ti-ansicht { animation: ti-ein .35s var(--ti-ease) both; }
@keyframes ti-ein { from { opacity: 0; transform: translateY(.5rem); } }

.ti-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 3.25rem;
  padding: 1rem 1.75rem;
  font: 500 1rem/1.2 var(--sans, "IBM Plex Sans", system-ui, sans-serif);
  letter-spacing: .01em;
  text-align: center;
  border: 1px solid var(--ti-dunkel);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .3s var(--ti-ease), color .3s var(--ti-ease), border-color .3s var(--ti-ease);
}
.ti-knopf--voll { background: var(--ti-dunkel); color: #fff; }
.ti-knopf--voll:hover { background: var(--ti-gruen); border-color: var(--ti-gruen); }
.ti-knopf--leise { background: transparent; color: var(--ti-dunkel); border-color: var(--ti-salbei); }
.ti-knopf--leise:hover { border-color: var(--ti-dunkel); }
.ti-knopf:disabled { opacity: .45; cursor: not-allowed; }
.ti-knopf:disabled:hover { background: var(--ti-dunkel); border-color: var(--ti-dunkel); }

html:not(.js) [data-ti-start] { display: none; }

.ti-start__titel {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: var(--r4, 2rem);
}
.ti-start__titel:focus { outline: none; }
.ti-start__felder {
  list-style: none;
  margin: 0 0 var(--r4, 2rem);
  padding: 0;
  border-top: 1px solid var(--ti-salbei);
}
.ti-start__felder li {
  display: grid;
  gap: .125rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--ti-salbei);
}
.ti-start__feld {
  font-family: var(--serif, "Spectral", Georgia, serif);
  font-size: 1.25rem;
  line-height: 1.3;
}
.ti-start__leitfrage { font-size: .9375rem; color: var(--ti-meta); }
.ti-start__datenschutz { font-size: .9375rem; color: var(--ti-meta); max-width: 34em; margin-bottom: var(--r3, 1.5rem); }
.ti-start__ohne { margin-top: var(--r3, 1.5rem); color: var(--ti-dunkel); }

.ti-fortschritt { margin-bottom: var(--r4, 2rem); }
.ti-fortschritt__text {
  margin: 0 0 .75rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ti-gruen);
}
.ti-fortschritt__spur {
  display: block;
  height: 2px;
  background: rgba(168, 197, 188, .55);
}
.ti-fortschritt__balken {
  display: block;
  height: 100%;
  background: var(--ti-gruen);
  transform: scaleX(var(--anteil, 0));
  transform-origin: 0 50%;
  transition: transform .45s var(--ti-ease);
}

.ti-schritt__titel { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: .75rem; }
.ti-schritt__leitfrage {
  font-family: var(--serif, "Spectral", Georgia, serif);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.4;
  color: var(--ti-meta);
  margin: 0 0 var(--r5, 3rem);
}

.ti-frage {
  border: 0;
  margin: 0 0 var(--r5, 3rem);
  padding: 0;
  min-width: 0;
}
.ti-frage__text {
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: .5rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ti-dunkel);
}
.ti-frage__hinweis {
  margin: 0 0 .25rem;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--ti-meta);
  max-width: 40em;
}
.ti-antworten { display: grid; gap: .5rem; margin-top: .875rem; }

.ti-antwort {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: .875rem;
  align-items: start;
  min-height: 3rem;
  padding: .8125rem 1rem;
  background: #fff;
  border: 1px solid var(--ti-salbei);
  border-radius: 2px;
  font-size: 1rem;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .ti-antwort:hover { border-color: var(--ti-gruen); }
}
.ti-antwort input {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin: .0625rem 0 0;
  background: #fff;
  border: 1px solid var(--ti-meta);
  border-radius: 50%;
  cursor: pointer;
}
.ti-antwort input::before {
  content: "";
  width: .625rem;
  height: .625rem;
  border-radius: 50%;
  background: var(--ti-gruen);
  transform: scale(0);
  transition: transform .15s ease;
}
.ti-antwort input:checked { border-color: var(--ti-gruen); }
.ti-antwort input:checked::before { transform: scale(1); }
.ti-antwort input:focus-visible { outline: none; }
.ti-antwort:has(input:checked) {
  background: var(--ti-hell);
  border-color: var(--ti-gruen);
  box-shadow: inset 0 0 0 1px var(--ti-gruen);
}
.ti-antwort:has(input:focus-visible) { outline: 2px solid var(--ti-dunkel); outline-offset: 2px; }

.ti-frage.ist-offen .ti-antwort { border-color: var(--ti-rot); }
.ti-frage__offen {
  margin: .5rem 0 0;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ti-rot);
}
.ti-fehler { margin: 0 0 var(--r3, 1.5rem); font-weight: 500; color: var(--ti-rot); }
.ti-fehler:empty { margin: 0; }

.ti-aktionen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1rem;
  padding-top: var(--r4, 2rem);
  border-top: 1px solid var(--ti-salbei);
}

.ti-stufe--rot { --ti-farbe: var(--ti-rot); }
.ti-stufe--gelb { --ti-farbe: var(--ti-gelb); }
.ti-stufe--gruen { --ti-farbe: var(--ti-gruen); }

.ti-punkt {
  display: inline-block;
  flex: none;
  width: .625rem;
  height: .625rem;
  border-radius: 50%;
  background: var(--ti-farbe, var(--ti-meta));
}

.ti-ergebnis__kicker {
  margin-bottom: var(--r2, 1rem);
  font-family: var(--sans, "IBM Plex Sans", system-ui, sans-serif);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ti-gruen) !important;
}
.ti-wert {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  margin: 0 0 var(--r2, 1rem);
}
.ti-wert__zahl {
  font-family: var(--serif, "Spectral", Georgia, serif);
  font-weight: 300;
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: .95;
  letter-spacing: -.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.ti-wert__von { font-size: 1.125rem; color: var(--ti-meta); }

.ti-marke {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .875rem;
  border: 1px solid var(--ti-farbe, var(--ti-meta));
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .04em;
  background: #fff;
}
.ti-ergebnis__text { max-width: 36em; margin: var(--r3, 1.5rem) 0 0; font-size: 1.125rem; }

.ti-abschnitt { margin-top: var(--r6, 4rem); }
.ti-abschnitt__titel {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  margin-bottom: var(--r3, 1.5rem);
}

.ti-felder { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ti-salbei); }
.ti-feld {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name wert"
    "spur spur"
    "stufe stufe";
  gap: .5rem 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ti-salbei);
}
.ti-feld__name {
  grid-area: name;
  font-family: var(--serif, "Spectral", Georgia, serif);
  font-size: 1.1875rem;
  line-height: 1.3;
}
.ti-feld__spur {
  grid-area: spur;
  display: block;
  height: .5rem;
  background: rgba(168, 197, 188, .35);
}
.ti-feld__balken {
  display: block;
  height: 100%;
  background: var(--ti-farbe, var(--ti-meta));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1s var(--ti-ease);
}
.ti-felder.ist-gezeichnet .ti-feld__balken { transform: scaleX(calc(var(--wert, 0) / 100)); }
.ti-feld__wert {
  grid-area: wert;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ti-feld__stufe {
  grid-area: stufe;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9375rem;
  color: var(--ti-meta);
}
@media (min-width: 46rem) {
  .ti-feld {
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) 2.5rem 9rem;
    grid-template-areas: "name spur wert stufe";
  }
}

.ti-hebel__feld { padding: var(--r4, 2rem) 0; border-top: 1px solid var(--ti-salbei); }
.ti-hebel__feld:last-child { padding-bottom: 0; }
.ti-hebel__titel { font-size: clamp(1.375rem, 2.2vw, 1.75rem); margin-bottom: .5rem; }
.ti-hebel__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ti-meta);
}
.ti-hebel__text { max-width: 38em; }
.ti-hebel__leistungen {
  display: grid;
  gap: .75rem;
  padding: 1.25rem 0 0 1rem;
  margin-top: var(--r2, 1rem);
  border-left: 2px solid var(--ti-gruen);
}
.ti-hebel__leistung {
  display: grid;
  gap: .125rem;
  margin: 0;
  font-size: .9375rem;
}
.ti-hebel__label {
  margin: 0;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ti-meta);
}
.ti-hebel__name { font-weight: 500; font-size: 1.0625rem; }
.ti-hebel__satz { color: var(--ti-meta); }

.ti-report { padding: clamp(1rem, 4vw, 2rem); background: #fff; border: 1px solid var(--ti-salbei); }
.ti-report .ti-abschnitt__titel { margin-bottom: .75rem; }
.ti-report__zusage { margin: var(--r2, 1rem) 0 0; font-size: .9375rem; color: var(--ti-meta); max-width: 38em; }
.ti-report__zeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin-top: var(--r3, 1.5rem); }
.ti-report__label { flex-basis: 100%; font-size: .9375rem; font-weight: 500; }
.ti-report__feld {
  flex: 1 1 100%;
  max-width: 28rem;
  min-width: 0;
  min-height: 3.25rem;
  padding: .75rem 1rem;
  font: inherit;
  color: var(--ti-dunkel);
  background: var(--ti-papier);
  border: 1px solid var(--ti-salbei);
  border-radius: 2px;
}
.ti-report__feld:focus-visible { outline: 2px solid var(--ti-dunkel); outline-offset: 2px; border-color: var(--ti-dunkel); }
.ti-report__feld[aria-invalid="true"] { border-color: var(--ti-rot); }
.ti-report__senden { margin-top: var(--r3, 1.5rem); }

.ti-report__knopf:disabled { opacity: .85; cursor: progress; }

.ti-report__einwilligung {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  margin-top: var(--r3, 1.5rem);
  font-size: .9375rem;
  line-height: 1.5;
  cursor: pointer;
}
.ti-report__einwilligung input {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin: .125rem 0 0;
  background: #fff;
  border: 1px solid var(--ti-meta);
  border-radius: 2px;
  cursor: pointer;
}
.ti-report__einwilligung input::before {
  content: "";
  width: .375rem;
  height: .6875rem;
  margin-top: -.125rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .15s ease;
}
.ti-report__einwilligung input:checked { background: var(--ti-gruen); border-color: var(--ti-gruen); }
.ti-report__einwilligung input:checked::before { transform: rotate(45deg) scale(1); }
.ti-report__einwilligung input:focus-visible { outline: 2px solid var(--ti-dunkel); outline-offset: 2px; }
.ti-report__einwilligung input[aria-invalid="true"] { border-color: var(--ti-rot); }
.ti-report__einwilligung a { color: var(--ti-gruen); text-decoration: underline; text-underline-offset: .2em; }

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

.ti-report__meldung { margin: var(--r2, 1rem) 0 0; font-size: .9375rem; font-weight: 500; color: var(--ti-rot); }
.ti-report__meldung:empty { margin: 0; }

.ti-report__hinweis { margin: var(--r3, 1.5rem) 0 0; font-size: .9375rem; color: var(--ti-meta); }

.ti-report__erfolg {
  margin-top: var(--r3, 1.5rem);
  padding: 1rem 1.25rem;
  background: var(--ti-hell);
  border-left: 2px solid var(--ti-gruen);
}
.ti-report__erfolg:focus { outline: none; }
.ti-report__erfolg-titel { margin: 0 0 .25rem; font-family: var(--serif, "Spectral", Georgia, serif); font-size: 1.25rem; line-height: 1.3; }
.ti-report__erfolg-text { margin: 0; font-size: .9375rem; }

.ti-neustart-zeile { margin: var(--r4, 2rem) 0 0; }
.ti-neustart {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  font: inherit;
  font-weight: 500;
  color: var(--ti-gruen);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

.ti-gespraech {
  margin: var(--r6, 4rem) calc(var(--ti-polster) * -1) calc(var(--ti-polster) * -1);
  padding: var(--ti-polster);
  background: var(--ti-dunkel);
  color: var(--text, rgba(255, 255, 255, .86));

  border: 1px solid var(--linie-stark, rgba(168, 197, 188, .5));
  border-top: 0;
}
.ti-karte .ti-gespraech__titel {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}
.ti-gespraech__text { max-width: 34em; margin-bottom: var(--r4, 2rem); }
.ti-karte .ti-gespraech__knopf:focus-visible { outline-color: #fff; }

.ti-stoerung { padding-block: calc(var(--kopfhoehe, 5rem) + var(--r7, 5rem)) var(--r9, 8rem); }

@media (prefers-reduced-motion: reduce) {
  .ti-ansicht { animation: none; }
  .ti-fortschritt__balken,
  .ti-feld__balken,
  .ti-antwort,
  .ti-antwort input::before,
  .ti-report__einwilligung input::before { transition: none; }
}

@media print {
  .ti-kopf { padding-top: 0; }
  .ti-karte { max-width: none; padding: 0; background: none; }
  .ti-report, .ti-neustart-zeile, .ti-gespraech { display: none; }
}
