@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0c2153;
  --navy-hell: #17306e;
  --navy-linie: #2a4387;
  --blau: #0063ab;
  --gelb: #f0b310;
  --gelb-tief: #c58f00;
  --hell: #f4faff;
  --papier: #eaf2f9;
  --weiss: #ffffff;
  --tinte: #10203f;
  --leise: #4f5f78;
  --linie: #cbdae8;
  --auf-navy: #c9d5ea;
  --fehler: #b3261e;
  --warm: #fff5d6;
  --radius: 1rem;
  --titel: "Bricolage", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --feder: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--navy); }
body {
  margin: 0;
  background: var(--hell);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { min-height: 100dvh; display: flex; flex-direction: column; background: var(--hell); }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3 { font-family: var(--titel); font-weight: 700; }
h1 { font-size: clamp(3rem, 15vw, 6rem); line-height: 0.96; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 7.2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: 1.1875rem; line-height: 1.2; letter-spacing: -0.012em; }
h1:focus, h2:focus { outline: none; }
.spalte { width: 100%; max-width: 38rem; margin-inline: auto; padding-inline: 1.25rem; }
.leise { color: var(--leise); }
.klein { font-size: 0.875rem; line-height: 1.45; }
.dach { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* Knöpfe mit spürbarem Druckpunkt */
.knopf {
  appearance: none;
  border: 0;
  width: 100%;
  min-height: 3.625rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  background: var(--gelb);
  color: var(--navy);
  font-family: var(--titel);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--gelb-tief);
  transition: transform 90ms ease-out, box-shadow 90ms ease-out, opacity 120ms ease-out;
  touch-action: manipulation;
}
.knopf:active { transform: translateY(4px); box-shadow: 0 0 0 var(--gelb-tief); }
.knopf:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: 0 4px 0 var(--gelb-tief); }
.knopf.neben { background: var(--weiss); box-shadow: inset 0 0 0 2px var(--navy), 0 4px 0 var(--navy); }
.knopf.neben:active { box-shadow: inset 0 0 0 2px var(--navy), 0 0 0 var(--navy); }
.knopf.dunkel { background: var(--navy); color: var(--weiss); box-shadow: 0 4px 0 #050f2b; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
.navy :focus-visible, .buehne :focus-visible { outline-color: var(--gelb); }
.text-knopf {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  min-height: 2.75rem;
  color: inherit;
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}
.text-knopf.unterstrichen { text-decoration: underline; text-underline-offset: 0.2em; min-height: 0; padding: 0; font-size: inherit; }

.navy { background: var(--navy); color: var(--weiss); }
/* Feines technisches Raster, wie auf einer Konstruktionszeichnung */
.raster-grund {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 1.75rem 1.75rem;
  background-position: center top;
}

/* Start: ein Bildschirm, eine Aussage */
.buehne {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-block: max(1.75rem, env(safe-area-inset-top)) max(1.75rem, env(safe-area-inset-bottom));
  color: var(--weiss);
}
.buehne .spalte { flex: 1; display: flex; flex-direction: column; }
.buehne .dach { color: var(--gelb); }
.buehne h1 { margin-top: 1.25rem; }
.buehne h1 em { font-style: normal; color: var(--gelb); }
.buehne-text { margin-top: 1rem; font-size: 1.1875rem; line-height: 1.38; color: var(--auf-navy); max-width: 24rem; }
.buehne-bild { flex: 1; display: flex; align-items: center; justify-content: center; padding-block: 1rem; min-height: 11rem; }
.buehne-bild .diagramm { width: min(78vw, 34dvh, 22rem); }
.buehne-fuss { display: grid; gap: 0.875rem; }
.buehne-fakten { display: flex; justify-content: center; gap: 0.5rem 1.25rem; flex-wrap: wrap; color: var(--auf-navy); font-size: 0.875rem; }
.ablauf { padding-block: 4.5rem 5rem; }
.ablauf h2 { margin-bottom: 3rem; }
.schritte { display: grid; gap: 3rem; counter-reset: s; }
.schritte li { counter-increment: s; display: grid; gap: 0.5rem; }
.schritte li::before {
  content: counter(s);
  font-family: var(--titel);
  font-size: 3.25rem;
  line-height: 1;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--blau);
}
.schritte p { color: var(--leise); }
.ablauf-schluss { margin-top: 3.5rem; display: grid; gap: 1.25rem; }

/* Fragen: oben die Frage auf Navy, darunter ein Blatt mit den Antworten */
.fragekopf { padding-block: max(0.5rem, env(safe-area-inset-top)) 3.25rem; }
.kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.kopfzeile .klein { color: var(--auf-navy); text-align: right; }
.fortschritt { display: flex; gap: 3px; margin-top: 0.25rem; }
.fortschritt i { flex: 1; height: 0.5rem; border-radius: 2px; background: var(--navy-linie); overflow: hidden; position: relative; }
.fortschritt i::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gelb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--feder);
}
.fortschritt i.an::after { transform: scaleX(1); }
.frage-titel { margin-top: 1.75rem; display: grid; gap: 0.625rem; animation: rein 260ms var(--feder); }
.frage-titel .nummer { font-family: var(--titel); font-weight: 800; font-size: 1rem; color: var(--gelb); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.frage-titel p { color: var(--auf-navy); }
.blatt {
  flex: 1;
  margin-top: -1.75rem;
  background: var(--hell);
  border-radius: 1.75rem 1.75rem 0 0;
  padding-block: 1.75rem max(1.5rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
.blatt .spalte { flex: 1; display: flex; flex-direction: column; gap: 0.875rem; animation: hoch 300ms var(--feder); }
.zurueck .blatt .spalte, .zurueck .frage-titel { animation-name: zurueck; }
@keyframes rein { from { opacity: 0; transform: translateX(1rem); } }
@keyframes zurueck { from { opacity: 0; transform: translateX(-1rem); } }
@keyframes hoch { from { opacity: 0; transform: translateY(0.75rem); } }
.hinweis-mehrfach { font-size: 0.8125rem; font-weight: 650; color: var(--blau); letter-spacing: 0.01em; }

/* Antwort-Karten */
.optionen { display: grid; gap: 0.625rem; }
.option {
  appearance: none;
  width: 100%;
  min-height: 3.75rem;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: 1.625rem 1fr;
  gap: 0.875rem;
  align-items: center;
  text-align: left;
  border: 0;
  border-radius: var(--radius);
  background: var(--weiss);
  color: inherit;
  font: inherit;
  line-height: 1.28;
  box-shadow: inset 0 0 0 1.5px var(--linie), 0 3px 0 var(--linie);
  cursor: pointer;
  transition: transform 90ms ease-out, box-shadow 90ms ease-out, background-color 120ms ease-out, color 120ms ease-out;
  touch-action: manipulation;
}
.option:active { transform: translateY(3px); box-shadow: inset 0 0 0 1.5px var(--linie), 0 0 0 var(--linie); }
.haken {
  width: 1.625rem; height: 1.625rem;
  display: grid; place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--linie);
  transition: transform 160ms var(--feder), background-color 120ms ease-out;
}
.mehrfach .haken { border-radius: 0.4375rem; }
.haken svg { width: 0.9375rem; height: 0.9375rem; opacity: 0; transform: scale(0.5); transition: opacity 100ms ease-out, transform 180ms var(--feder); }
.option.gewaehlt { background: var(--navy); color: var(--weiss); box-shadow: 0 3px 0 #050f2b; font-weight: 600; }
.option.gewaehlt .haken { background: var(--gelb); box-shadow: none; transform: scale(1.06); }
.option.gewaehlt .haken svg { opacity: 1; transform: scale(1); }

/* Eigene Antwort: gestrichelt wie eine Hilfslinie */
.eigene { display: grid; gap: 0.5rem; }
.eigene-knopf {
  appearance: none;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1.5px dashed #8fa8c2;
  border-radius: var(--radius);
  color: var(--blau);
  font: inherit;
  font-weight: 600;
  font-size: 0.9875rem;
  text-align: left;
  cursor: pointer;
  transition: transform 90ms ease-out;
  touch-action: manipulation;
}
.eigene-knopf:active { transform: scale(0.985); }
textarea {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--weiss);
  color: inherit;
  font: inherit;
  line-height: 1.42;
  padding: 0.875rem 1rem;
  box-shadow: inset 0 0 0 1.5px var(--linie);
  resize: vertical;
}
textarea.gross { min-height: 9.5rem; }
textarea.kompakt { min-height: 5rem; }
textarea:focus, .feld input:focus, .sprache-eingabe input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blau), 0 0 0 4px rgb(0 99 171 / 0.12); }
.zaehler { font-size: 0.875rem; color: var(--leise); }
.zaehler.ok { color: var(--blau); font-weight: 650; }

/* Regler als Maßstab */
.regler { display: grid; gap: 0.5rem; padding: 1.5rem 1.125rem 1.25rem; background: var(--weiss); border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--linie), 0 3px 0 var(--linie); }
.regler-wert { text-align: center; font-family: var(--titel); font-size: 1.1875rem; font-weight: 700; color: var(--navy); min-height: 2.8em; line-height: 1.2; display: grid; place-items: center; }
.massstab { position: relative; padding-bottom: 0.75rem; }
.massstab::after {
  content: "";
  position: absolute;
  left: 1.125rem; right: 1.125rem; bottom: 0;
  height: 0.5rem;
  background-image: repeating-linear-gradient(90deg, #a9bdd1 0 1.5px, transparent 1.5px calc(100% / 10));
  background-size: 100% 100%;
  border-right: 1.5px solid #a9bdd1;
}
input[type="range"] {
  --wert: 50%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  background: transparent;
  cursor: grab;
  touch-action: pan-y;
}
input[type="range"]:active { cursor: grabbing; }
input[type="range"]::-webkit-slider-runnable-track {
  height: 0.75rem;
  border-radius: 1rem;
  background: linear-gradient(to right, var(--blau) var(--wert), var(--papier) var(--wert));
  box-shadow: inset 0 0 0 1px var(--linie);
}
input[type="range"]::-moz-range-track { height: 0.75rem; border-radius: 1rem; background: var(--papier); }
input[type="range"]::-moz-range-progress { height: 0.75rem; border-radius: 1rem; background: var(--blau); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 2.25rem; height: 2.25rem;
  margin-top: -0.75rem;
  border-radius: 0.75rem;
  background: var(--gelb);
  border: 3px solid var(--navy);
  transition: transform 100ms ease-out;
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
input[type="range"]::-moz-range-thumb { width: 1.875rem; height: 1.875rem; border-radius: 0.75rem; background: var(--gelb); border: 3px solid var(--navy); }
.pole { display: flex; justify-content: space-between; gap: 1.5rem; font-size: 0.9375rem; line-height: 1.25; font-weight: 600; margin-top: 0.25rem; }
.pole span:last-child { text-align: right; }

/* Sprachen */
.sprache-eingabe { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; }
.sprache-eingabe input {
  min-width: 0;
  min-height: 3.5rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--weiss);
  color: inherit;
  font: inherit;
  padding: 0.75rem 1rem;
  box-shadow: inset 0 0 0 1.5px var(--linie);
}
.sprache-eingabe .knopf { width: auto; min-height: 3.5rem; padding-inline: 1.125rem; font-size: 1rem; }
.sprache-karte { display: grid; gap: 0.125rem; padding: 0.875rem 1rem 1rem; background: var(--weiss); border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--linie), 0 3px 0 var(--linie); animation: hoch 240ms var(--feder); }
.sprache-kopf { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.sprache-name { font-family: var(--titel); font-size: 1.125rem; font-weight: 700; overflow-wrap: anywhere; }
.sprache-stufe { color: var(--blau); font-weight: 650; font-size: 0.875rem; white-space: nowrap; margin-left: auto; }
.entfernen { appearance: none; border: 0; background: var(--papier); color: var(--navy); width: 2rem; height: 2rem; flex: none; border-radius: 0.625rem; font-size: 1rem; line-height: 1; cursor: pointer; }
.sprache-pole { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--leise); }

/* Fester Weiter-Knopf */
.fuss { position: sticky; bottom: 0; margin-top: auto; padding-top: 1rem; padding-bottom: max(0.5rem, env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--hell) 72%, rgb(244 250 255 / 0)); z-index: 1; }

/* Formular */
.feld { display: grid; gap: 0.375rem; font-weight: 650; font-size: 0.9375rem; }
.feld input { width: 100%; border: 0; border-radius: var(--radius); background: var(--weiss); color: inherit; font: inherit; font-weight: 400; font-size: 1.0625rem; min-height: 3.5rem; padding: 0.75rem 1rem; box-shadow: inset 0 0 0 1.5px var(--linie); }
.feld.fehlerhaft input, .pruef.fehlerhaft { box-shadow: inset 0 0 0 2px var(--fehler); }
.fehlertext { color: var(--fehler); font-size: 0.9375rem; font-weight: 550; }
.fehlertext:empty { display: none; }
.pruef { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; padding: 1rem; background: var(--weiss); border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--linie); font-size: 0.9375rem; line-height: 1.38; cursor: pointer; }
.pruef input { width: 1.375rem; height: 1.375rem; margin: 0.0625rem 0 0; accent-color: var(--navy); }
#bot-schutz:empty { display: none; }

.laden { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; text-align: center; padding: 2rem 1.25rem; min-height: 100dvh; }
.laden .diagramm { width: min(72vw, 40dvh, 20rem); }
.laden p { color: var(--auf-navy); max-width: 22rem; }

/* Diagramm */
.diagramm { width: 100%; height: auto; display: block; overflow: visible; }
.diagramm text { fill: var(--auf-navy); font-size: 15px; font-family: var(--schrift); font-weight: 550; }
.diagramm .raster { fill: none; stroke: rgb(255 255 255 / 0.17); stroke-width: 1; }
.diagramm .beruf { fill: rgb(255 255 255 / 0.07); stroke: var(--weiss); stroke-width: 1.75; stroke-dasharray: 5 5; stroke-linejoin: round; }
.diagramm .du { fill: var(--gelb); fill-opacity: 0.3; stroke: var(--gelb); stroke-width: 2.75; stroke-linejoin: round; }
.legende { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem 1.25rem; font-size: 0.875rem; color: var(--auf-navy); margin-top: 0.5rem; }
.legende span { display: inline-flex; align-items: center; gap: 0.5rem; }
.legende i { display: block; width: 1.5rem; height: 0; border-top: 3px solid var(--gelb); }
.legende i.gestrichelt { border-top: 2px dashed var(--weiss); }

/* Ergebnis: pro Bildschirm eine Sache */
.treffer {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-block: max(2rem, env(safe-area-inset-top)) 2.5rem;
}
.treffer .spalte { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }
.treffer .dach { color: var(--gelb); }
.treffer h1 { font-size: clamp(1.625rem, 8.2vw, 3.5rem); line-height: 1.05; overflow-wrap: break-word; margin-top: 0.5rem; }
.treffer-zahl { font-family: var(--titel); font-weight: 800; font-size: clamp(3.5rem, 18vw, 5.5rem); line-height: 0.95; letter-spacing: -0.04em; color: var(--gelb); font-variant-numeric: tabular-nums; }
.treffer-zahl small { display: block; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--auf-navy); margin-top: 0.375rem; line-height: 1.3; }
.treffer-kopf { display: grid; gap: 1rem; }
.knapp { color: var(--auf-navy); font-size: 0.9375rem; }
.weiter-hinweis { text-align: center; color: var(--auf-navy); font-size: 0.875rem; }
.abschnitt { padding-block: 4.5rem; }
.abschnitt > .spalte { display: grid; gap: 1rem; }
.abschnitt .dach { color: var(--blau); }
.gross-text { font-family: var(--titel); font-size: clamp(1.3125rem, 5.4vw, 1.75rem); line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; color: var(--navy); }
.ki-marke { font-size: 0.8125rem; color: var(--leise); }
.abschnitt .zwischen { margin-top: 2rem; }
[hidden] { display: none !important; }
.vergleich { padding-block: 4.5rem; }
.vergleich .dach { color: var(--gelb); }
.vergleich .spalte { display: grid; gap: 1.25rem; }
.links { display: grid; gap: 1.75rem; }
.berufswahl { display: grid; gap: 0.5rem; }
.wahl {
  appearance: none; border: 0;
  width: 100%;
  padding: 0.875rem 1rem;
  display: grid;
  gap: 0.5rem;
  text-align: left;
  border-radius: 0.875rem;
  background: var(--navy-hell);
  color: var(--weiss);
  font: inherit;
  font-size: 0.9875rem;
  cursor: pointer;
  transition: transform 90ms ease-out, background-color 120ms ease-out;
  touch-action: manipulation;
}
.wahl:active { transform: scale(0.985); }
.wahl-zeile { display: flex; justify-content: space-between; gap: 0.75rem; font-weight: 650; line-height: 1.25; }
.wahl-zeile b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.balken { height: 0.3125rem; border-radius: 1rem; background: rgb(255 255 255 / 0.16); overflow: hidden; }
.balken div { height: 100%; width: 100%; border-radius: inherit; background: var(--gelb); transform-origin: left; animation: wachsen 700ms var(--feder) backwards; }
@keyframes wachsen { from { transform: scaleX(0); } }
.wahl.aktiv { background: var(--weiss); color: var(--navy); }
.wahl.aktiv .balken { background: var(--linie); }
.wahl.aktiv .balken div { background: var(--blau); }
.wahl.gesperrt .wahl-zeile b { font-weight: 550; font-size: 0.875rem; opacity: 0.8; }
.vergleich-text { display: grid; gap: 0.75rem; color: var(--auf-navy); }
.vergleich-text h3 { color: var(--weiss); font-size: 1.375rem; }
.vergleich-text .warum { color: var(--weiss); }
.hinweis { padding: 1.125rem; border-radius: var(--radius); background: var(--warm); color: var(--tinte); font-size: 0.9375rem; line-height: 1.45; }
.hinweis:empty { display: none; }
.staerken { display: grid; gap: 0; }
.staerken li { display: flex; align-items: baseline; gap: 1rem; padding-block: 0.875rem; border-top: 1px solid var(--linie); font-family: var(--titel); font-size: clamp(1.375rem, 6vw, 1.75rem); font-weight: 650; letter-spacing: -0.015em; color: var(--navy); }
.staerken li:last-child { border-bottom: 1px solid var(--linie); }
.staerken span { font-size: 0.9375rem; font-weight: 700; color: var(--blau); font-variant-numeric: tabular-nums; }
.schluss { background: var(--papier); padding-block: 4.5rem max(4rem, env(safe-area-inset-bottom)); }
.schluss .spalte { display: grid; gap: 1.25rem; }

dialog {
  border: 0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  width: min(32rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  background: var(--weiss);
  color: var(--tinte);
  font-size: 0.9375rem;
}
dialog::backdrop { background: rgb(12 33 83 / 0.65); }
dialog p, dialog h2 { margin-bottom: 0.875rem; }

@media (min-width: 52rem) {
  .buehne h1 { font-size: 6.5rem; }
  .buehne-bild .diagramm { width: min(40dvh, 24rem); }
  .ablauf .schritte { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .ablauf .spalte { max-width: 60rem; }
  .ablauf-schluss { max-width: 26rem; margin-inline: auto; text-align: center; }
  .treffer h1 { font-size: clamp(2rem, 3.5vw, 2.875rem); }
  .treffer .spalte { max-width: 68rem; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 4rem; }
  .vergleich .spalte { max-width: 68rem; grid-template-columns: 1fr 1.05fr; column-gap: 4rem; align-items: start; }
  .vergleich .dach, .vergleich h2 { grid-column: 1 / -1; }
  .vergleich .vergleich-bild { order: 2; position: sticky; top: 2rem; }
  .schluss .spalte { max-width: 30rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
