/* Orientierungstests border concepts – gemeinsamer Kern, mobile first.
   Die MARKENFARBEN stehen NICHT hier, sondern je Produkt in produkte/<produkt>/marke.css (wird nach dieser Datei
   geladen und überschreibt die neutralen Standardwerte unten). Alle Kombinationen sind auf WCAG AA (≥ 4,5:1) ausgelegt;
   tests/kern.test.mjs prüft die Kontraste je Produkt. */
:root {
  --marke: #0a4f8c;          /* Primärfarbe: Knöpfe, Balken, Rahmen (neutraler Standard) */
  --marke-dunkel: #083b69;   /* für Text, Links und Hover */
  --marke-hell: #e6f0fa;     /* zarte Fläche */
  --auf-marke: #ffffff;      /* Schrift auf --marke */
  --kopf: #1a1f2b;           /* Kopfzeile */
  --auf-kopf: #ffffff;
  --akzent: #1a1f2b;         /* Anmelde-Knopf zur Messe */
  --akzent-dunkel: #000000;
  --auf-akzent: #ffffff;
  --text: #1a1f2b;
  --text-leise: #4a5263;     /* 7,6:1 auf Weiß */
  --grund: #f5f7fa;
  --flaeche: #ffffff;
  --linie: #d5dbe4;
  --erfolg: #166534;
  --fokus: #f59e0b;
  --radius: 14px;
  --schatten: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .06);
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--schrift); font-size: 1.0625rem; line-height: 1.5;
  color: var(--text); background: var(--grund);
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--marke-dunkel); }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--flaeche); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }

/* Kopf/Fuß */
.kopf { background: var(--kopf); color: var(--auf-kopf); }
.kopf-innen { max-width: 760px; margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.logo { font-weight: 800; letter-spacing: .04em; font-size: 1rem; }
.logo-and { font-weight: 400; }
.kopf-titel { font-size: .9rem; opacity: .9; }
.haupt { max-width: 760px; margin: 0 auto; padding: 1.25rem 1rem 2rem; }
.fuss { max-width: 760px; margin: 0 auto; padding: 1rem; display: flex; gap: 1.2rem; font-size: .9rem; }
.fuss a { color: var(--text-leise); }
.laden { color: var(--text-leise); }

/* Karten & Knöpfe */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--schatten); margin-bottom: 1.25rem; }
.karte > :last-child { margin-bottom: 0; }
.hinweis-karte { border-left: 5px solid var(--marke); }
.fehler { border-left: 5px solid #b91c1c; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 48px; padding: .7rem 1.2rem; border-radius: 999px; border: 2px solid var(--marke);
  background: var(--marke); color: var(--auf-marke); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.knopf:hover { background: var(--marke-dunkel); border-color: var(--marke-dunkel); }
.knopf-zweit { background: var(--flaeche); color: var(--marke-dunkel); }
.knopf-zweit:hover { background: var(--marke-hell); color: var(--marke-dunkel); }
.knopf-gross { width: 100%; min-height: 56px; font-size: 1.1rem; }
.knopf-akzent { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); }
.knopf-akzent:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }
.knopf-klein { min-height: 44px; padding: .4rem 1rem; font-size: .95rem; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* Start */
.einleitung { font-size: 1.1rem; }
.eckdaten { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.eckdaten li { background: var(--marke-hell); color: var(--marke-dunkel); border-radius: 999px; padding: .3rem .8rem; font-size: .95rem; }
.merksatz { font-weight: 600; border-left: 4px solid var(--akzent); padding-left: .8rem; }
.feld { border: 0; padding: 0; margin: 0 0 1.1rem; }
.feld legend, .feld label { display: block; font-weight: 600; margin-bottom: .4rem; padding: 0; }
select, input[type="email"] {
  width: 100%; min-height: 50px; font: inherit; padding: .6rem .8rem; border: 2px solid var(--linie);
  border-radius: 10px; background: var(--flaeche); color: var(--text);
}
select:focus, input:focus { border-color: var(--marke); }



.feld-hilfe { font-size: .92rem; color: var(--text-leise); margin: -.2rem 0 .5rem; }
.formfehler { color: #b91c1c; font-weight: 600; min-height: 1.5em; margin: 0 0 .6rem; }
.formfehler:empty { min-height: 0; }

/* Fragen */
.fortschritt { margin-bottom: 1rem; }
.fortschritt-text { display: flex; justify-content: space-between; font-size: .9rem; color: var(--text-leise); margin-bottom: .35rem; gap: .5rem; }
.fortschritt-balken { height: 8px; background: var(--linie); border-radius: 99px; overflow: hidden; }
.fortschritt-fuellung { height: 100%; background: var(--marke); border-radius: 99px; transition: width .25s ease; }
.modul-intro { color: var(--text-leise); }
.frage-karte { background: var(--flaeche); border-radius: var(--radius); border: 1px solid var(--linie); box-shadow: var(--schatten); padding: 1.2rem 1rem; }
.frage-vor { color: var(--text-leise); margin-bottom: .4rem; font-size: .95rem; }
.frage-text { font-size: 1.35rem; margin-bottom: 1.1rem; min-height: 2.5em; }
.antworten { display: grid; gap: .55rem; }
.antwort {
  display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 56px; padding: .6rem .9rem;
  text-align: left; font: inherit; font-weight: 600; color: var(--text); background: var(--flaeche);
  border: 2px solid var(--linie); border-radius: 12px; cursor: pointer; transition: border-color .12s, background .12s;
}
@media (hover: hover) and (pointer: fine) { .antworten:not(.ruhig) .antwort:hover { border-color: var(--marke); } }
.antwort[aria-pressed="true"] { border-color: var(--marke); background: var(--marke); color: var(--auf-marke); }
.antwort-taste {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--marke-hell); color: var(--marke-dunkel); font-size: .9rem;
}
.antwort[aria-pressed="true"] .antwort-taste { background: #fff; color: var(--marke-dunkel); }
.navi { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1rem; }

/* Ergebnis */
.ergebnis h1 { margin-bottom: 1rem; }
.block { margin: 0 0 2rem; }
.flach { border-left: 5px solid var(--akzent); }
.info { border-left: 5px solid var(--marke); }
.profil { margin: 0 0 1rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: .8rem; }
.typen { padding-left: 1.3rem; }
.typen li { margin-bottom: .6rem; }
.feldkarten { display: grid; gap: 1rem; }
.feldkarte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem; box-shadow: var(--schatten); }
.feldkarte.ueberraschung { border: 2px dashed var(--akzent); }
.feldkarte-kopf { display: flex; align-items: center; gap: .6rem; }
.feldkarte-kopf h3 { flex: 1; margin: 0; }
.rang { flex: 0 0 auto; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--marke); color: var(--auf-marke); font-weight: 700; }
.passung { font-weight: 800; font-size: 1.15rem; color: var(--marke-dunkel); white-space: nowrap; }
.passung-balken { height: 6px; background: var(--marke-hell); border-radius: 99px; margin: .6rem 0 .7rem; overflow: hidden; }
.passung-balken > div { height: 100%; background: var(--marke); }
.kurz { color: var(--text-leise); margin-bottom: .4rem; }
.warum { font-weight: 600; }
.feld-details { margin: 0 0 .8rem; display: grid; grid-template-columns: 1fr; }
.feld-details dt { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-leise); margin-top: .4rem; }
.feld-details dd { margin: 0; }
.feld-hinweise { margin: 0 0 .8rem; padding: .6rem .8rem .6rem 1.8rem; background: #fff7ed; border-radius: 10px; font-size: .95rem; }
.feld-hinweise li + li { margin-top: .3rem; }
.mehr { font-weight: 650; display: inline-block; padding: .4rem 0; min-height: 44px; }

.messe-karte { border: 2px solid var(--marke); }
.messe-stadt { margin: 0 0 .2rem; font-weight: 750; }
.messe-datum { margin: 0 0 .2rem; font-weight: 600; }
.messe-ort { color: var(--text-leise); margin-bottom: .8rem; }
.messe-haupt .knopf { margin-top: .4rem; }
.messe-saetze { margin: 1rem 0 0; padding-left: 1.2rem; }
.demnaechst { margin-top: .8rem; font-size: .95rem; color: var(--text-leise); font-style: italic; }
.messe-alle { margin: 0 0 1rem; }
.messe-alle summary, .eltern summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.messe-liste { display: grid; gap: .8rem; margin-top: .6rem; }
.messe-zeile { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: .8rem; }
.messe-zeile .messe-ort { margin-bottom: .5rem; }
.beratung { font-size: .95rem; color: var(--text-leise); }
.eltern p { margin-top: .6rem; }
.teilen .klein, .klein { font-size: .9rem; color: var(--text-leise); margin-top: .6rem; }
.kopiert { color: var(--erfolg); font-weight: 600; }
.disclaimer { font-size: .95rem; color: var(--text-leise); border-top: 1px solid var(--linie); padding-top: 1rem; }

/* Lead */
.lead .check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .8rem; font-size: .95rem; }
.lead .check input { width: 1.4rem; height: 1.4rem; flex: 0 0 auto; margin-top: .1rem; }
.lead-status { font-weight: 600; min-height: 1.4em; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; }

@media (min-width: 600px) {
  h1 { font-size: 2.1rem; }
  .haupt { padding-top: 2rem; }
  .frage-karte { padding: 1.8rem; }
  .antworten-skala { grid-template-columns: repeat(5, 1fr); }
  .antworten-skala .antwort { flex-direction: column; justify-content: center; text-align: center; min-height: 96px; gap: .4rem; }
  .feld-details { grid-template-columns: max-content 1fr; column-gap: 1rem; }
  .feld-details dt { margin-top: .2rem; }
  .feld-details dd { margin-top: .2rem; }
  .knopf-gross { width: auto; min-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .kopf { background: none; color: #000; border-bottom: 2px solid #000; }
  .keindruck, .fuss, .skip, .navi, .lead, .knopf, .hinweis-karte { display: none !important; }
  .karte, .feldkarte, .profil { box-shadow: none; break-inside: avoid; }
  .feldkarte { margin-bottom: .6rem; }
  a { color: #000; }
  .messe-haupt .knopf, .messe-zeile .knopf { display: none !important; }
}

/* ---------- Interessenprofil als Radar ---------- */
.radar-svg { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; }
.radar-buchstabe { font: 800 26px var(--schrift); }
.radar-legende { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .9rem; }
.radar-legende li { display: flex; align-items: center; gap: .5rem; font-size: .95rem; color: var(--text-leise); }
.radar-legende li.stark { color: var(--text); font-weight: 700; }
.radar-punkt { flex: 0 0 auto; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; color: #fff; font-weight: 800; font-size: .8rem; }
.radar-name { flex: 1; min-width: 0; }
.radar-zahl { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { .radar-legende { grid-template-columns: 1fr; } }
.radar-zahl-andere { color: #9a3412; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.radar-legende li:has(.radar-zahl-andere) { flex-wrap: wrap; }
.fremd-vergleich { border-left: 5px solid #9a3412; }
.fremd-vergleich ul { padding-left: 1.2rem; }
.fremd-einladen input[type="text"] { width: 100%; min-height: 50px; font: inherit; padding: .6rem .8rem; border: 2px solid var(--linie); border-radius: 10px; background: var(--flaeche); color: var(--text); }
@media print { .radar-svg, .radar-punkt { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .radar-svg { max-width: 90mm; } }

/* ---------- Studiengänge swipen ---------- */
.sg-start { border-left: 5px solid var(--marke); }
.swipe-hilfe { color: var(--text-leise); font-size: .92rem; margin: 0 0 .8rem; }
.sg-stapel { position: relative; min-height: 300px; margin-bottom: 1rem; }
.sg-karte {
  position: relative; background: var(--flaeche); border: 1px solid var(--linie); border-top: 8px solid var(--feldfarbe, var(--marke));
  border-radius: 18px; padding: 1.4rem 1.2rem 1.2rem; box-shadow: 0 6px 20px rgba(16, 24, 40, .12); min-height: 300px;
  touch-action: pan-y; user-select: none; cursor: grab; transition: transform .2s ease; z-index: 2;
}
.sg-karte.zieht { transition: none; cursor: grabbing; }
.sg-karte.fliegt { transition: transform .22s ease-in; }
.sg-karte.hinten { position: absolute; inset: 0; transform: scale(.95) translateY(10px); z-index: 1; box-shadow: none; opacity: .7; pointer-events: none; }
.sg-karte.hinten > :not(.sg-feld) { visibility: hidden; }
.sg-feld { margin: 0 0 .6rem; font-size: .9rem; font-weight: 650; color: var(--text-leise); display: flex; align-items: center; gap: .45rem; }
.sg-punkt { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: var(--feldfarbe, var(--marke)); flex: 0 0 auto; }
.sg-ueberraschung { display: inline-block; margin: 0 0 .6rem; padding: .15rem .6rem; border-radius: 99px; background: #fff7ed; color: var(--akzent-dunkel); font-size: .85rem; font-weight: 650; }
.sg-name { font-size: 1.6rem; margin: 0 0 .6rem; }
.sg-kurz { margin: 0 0 .8rem; }
.sg-hs { margin: 0; color: var(--text-leise); font-size: .92rem; }
.sg-stempel { position: absolute; top: 1rem; padding: .2rem .7rem; border: 3px solid; border-radius: 8px; font-weight: 900; font-size: 1.2rem; letter-spacing: .05em; opacity: 0; pointer-events: none; }
.sg-ja { left: 1rem; color: var(--erfolg); border-color: var(--erfolg); transform: rotate(-12deg); opacity: var(--ja, 0); }
.sg-nein { right: 1rem; color: #b91c1c; border-color: #b91c1c; transform: rotate(12deg); opacity: var(--nein, 0); }
.swipe-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.swipe-knopf { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 58px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; border: 2px solid; background: var(--flaeche); }
.swipe-knopf span { font-size: 1.3rem; line-height: 1; }
.swipe-knopf.nein { color: #b91c1c; border-color: #b91c1c; }
.swipe-knopf.ja { color: #fff; background: var(--erfolg); border-color: var(--erfolg); }
@media (hover: hover) and (pointer: fine) { .swipe-knopf.nein:hover { background: #fef2f2; } .swipe-knopf.ja:hover { background: #14532d; } }
.sg-liste { padding: 0; margin: 0 0 1rem; list-style: none; counter-reset: sg; display: grid; gap: .7rem; }
.sg-liste li { counter-increment: sg; background: var(--flaeche); border: 1px solid var(--linie); border-left: 5px solid var(--feldfarbe, var(--marke)); border-radius: 12px; padding: .8rem .9rem; }
.sg-zeile { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.sg-zeile strong { flex: 1; min-width: 12rem; font-size: 1.05rem; }
.sg-zeile strong::before { content: counter(sg) ". "; color: var(--text-leise); font-weight: 600; }
.sg-gemocht { font-size: .8rem; font-weight: 700; color: var(--erfolg); background: #f0fdf4; border-radius: 99px; padding: .1rem .5rem; }
.sg-passung { font-weight: 800; color: var(--marke-dunkel); }
.sg-meta { margin: .25rem 0 .2rem; font-size: .88rem; color: var(--text-leise); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.sg-liste .sg-kurz { margin: 0; font-size: .95rem; }

/* Anschluss-Ampel (z. B. Master: direkt / mit Auflagen / Quereinstieg) – Farbe nur als Zusatz, der Text trägt die Aussage */
.anschluss { font-weight: 650; }
.anschluss::before { content: "●"; margin-right: .35rem; }
.anschluss-direkt::before { color: #166534; }
.anschluss-auflagen::before { color: #a16207; }
.anschluss-quereinstieg::before { color: #4a5263; }

/* ---------- Messe-Laufzettel ---------- */
.laufzettel h3 { margin: 1.2rem 0 .5rem; }
.lz-datum { font-weight: 600; margin-bottom: .6rem; }
.lz-hinweis { background: #fff7ed; border-radius: 10px; padding: .5rem .8rem; color: var(--text); }
.lz-liste, .lz-vortraege, .lz-kompakt { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.lz-liste li, .lz-vortraege li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: .7rem .8rem; }
.lz-check { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .3rem .7rem; min-height: 44px; cursor: pointer; }
.lz-check input { width: 1.4rem; height: 1.4rem; margin: 0; accent-color: var(--marke-dunkel); }
.lz-name { font-weight: 700; }
.lz-check input:checked ~ .lz-name { text-decoration: line-through; color: var(--text-leise); }
.lz-stand { font-weight: 700; white-space: nowrap; background: var(--marke-hell); color: var(--text); border-radius: 999px; padding: .15rem .6rem; font-size: .9rem; }
.lz-stand.offen { background: transparent; color: var(--text-leise); font-weight: 500; white-space: normal; text-align: right; }
.lz-passt { margin: .35rem 0 0 2.1rem; font-size: .9rem; color: var(--text-leise); }
.lz-kompakt { gap: .25rem; font-size: .92rem; margin-top: .5rem; }
.lz-zeit { margin: 0; font-size: .9rem; font-weight: 650; color: var(--text-leise); }
.lz-titel { margin: .15rem 0 0; font-weight: 700; }
.lz-unter, .lz-ref { margin: .15rem 0 0; font-size: .9rem; color: var(--text-leise); }
.lz-alle { margin: .8rem 0; }
.lz-alle summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.lz-frage .knopfreihe { margin-top: .6rem; }
@media (max-width: 420px) {
  .lz-check { grid-template-columns: auto 1fr; }
  .lz-stand { grid-column: 2; justify-self: start; }
  .lz-stand.offen { text-align: left; }
}
.lz-planen { margin: 1rem 0; padding-top: 1rem; border-top: 1px solid var(--linie); }
.lz-planen label { display: block; font-weight: 650; margin-bottom: .4rem; }
.lz-planen select { min-height: 44px; max-width: 100%; }
