/* gupp — Gestaltung: klar und modern.
   Weiss und Tiefschwarz, ein gesaettigtes Akzentblau, Grotesk in mehreren
   Schnitten, klare Raster und deutliche Kanten. Die Schriften liegen bei uns
   und werden nicht von fremden Servern geladen. */

@font-face{font-family:'Archivo';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/schriften/archivo-400_700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Archivo';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/schriften/archivo-400_700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/schriften/plexmono-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/schriften/plexmono-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/schriften/plexmono-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/schriften/plexmono-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root {
  /* Neutralwerte mit leichtem Blaustich — reines Grau wirkt unbestimmt */
  --text:        #0B0D12;
  --gedaempft:   #5C6473;
  --leise:       #8A92A1;
  --linie:       #E2E5EB;
  --linie-stark: #C6CCD7;
  --grund:       #FFFFFF;
  --flaeche:     #F4F6F9;

  --akzent:       #1633E8;
  --akzent-tief:  #0F24A8;
  --akzent-hauch: #EDF0FE;

  --fehler: #BC2418;  --fehler-flaeche: #FDF0EE;  --fehler-linie: #F0C4BE;
  --ok:     #07684A;  --ok-flaeche:     #E8F6F0;   --ok-linie:     #B4DCCB;
  --warn:   #8A5A05;  --warn-flaeche:   #FCF4E3;   --warn-linie:   #E8D3A0;

  --radius: 3px;

  --schrift: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

/* Ohne das kann eine Klasse mit eigenem display-Wert (z.B. .zeile mit
   display:flex) das hidden-Attribut bei gleicher Spezifitaet ueberstimmen —
   das Element bliebe sichtbar, obwohl [hidden] gesetzt ist. Passiert erst
   seit id="bereits-freigeschaltet-aktionen" in bewerbung.html (.zeile +
   hidden kombiniert), also global gefixt statt nur dort. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font: 16px/1.6 var(--schrift);
  color: var(--text);
  background: var(--flaeche);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ziffern in Tabellen, Werten und Zeitraeumen laufen in gleicher Breite */
table, .score, .betrag, .zeitraum, .frage-nr, .stufe-zahl, time {
  font-variant-numeric: tabular-nums;
}

.huelle { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.schmal { max-width: 440px; }

header.kopf {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; background: var(--grund);
  border-bottom: 1px solid var(--text);
}
header.kopf .marke { font-weight: 700; font-size: 19px; letter-spacing: -0.04em; }
header.kopf .rest {
  margin-left: auto; font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--leise);
}

/* App-Navigation (Dashboard, Bewerbung, Fit-Check, ...). Bewusst eigene Zeile
   statt in header.kopf: dort wuerde sie auf schmalen Bildschirmen komplett
   ausgeblendet (siehe header.kopf nav weiter unten, das ist fuer die
   Marketingseite gedacht) — die App-Navigation muss aber ueberall bedienbar
   bleiben, notfalls per horizontalem Scroll. */
nav.app-nav {
  position: relative;
  display: flex; gap: 2px; padding: 6px 16px; overflow-x: auto;
  background: var(--grund); border-bottom: 1px solid var(--linie);
  -webkit-overflow-scrolling: touch;
}
/* Scroll-Hinweis (siehe assets/app-nav.js): links/rechts nur eingeblendet,
   wenn dort tatsaechlich noch etwas zu scrollen ist -- sonst wuerde ein
   Rand-Fade auch dann erscheinen, wenn ohnehin schon alle Punkte passen.
   Gleicher Fade-Trick wie beim Arbeitgeber-Marquee auf der Startseite. */
nav.app-nav::before, nav.app-nav::after {
  content: ""; position: absolute; top: 0; bottom: 1px; width: 24px;
  pointer-events: none; opacity: 0; transition: opacity 150ms ease;
}
nav.app-nav::before { left: 0; background: linear-gradient(90deg, var(--grund), transparent); }
nav.app-nav::after { right: 0; background: linear-gradient(270deg, var(--grund), transparent); }
nav.app-nav.app-nav--links::before { opacity: 1; }
nav.app-nav.app-nav--rechts::after { opacity: 1; }
nav.app-nav a {
  flex: none; padding: 8px 12px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: var(--gedaempft);
  text-decoration: none; white-space: nowrap;
}
nav.app-nav a:hover { color: var(--text); background: var(--flaeche); }
nav.app-nav a[aria-current="page"] { color: var(--text); background: var(--flaeche); font-weight: 600; }
nav.app-nav a:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; }

h1 { font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -0.035em; margin: 0 0 10px; text-wrap: balance; }
h2 { font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -0.022em; margin: 32px 0 12px; text-wrap: balance; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
p.lead { color: var(--gedaempft); margin: 0 0 26px; font-size: 16.5px; }

.karte {
  background: var(--grund); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 22px; margin-bottom: 16px;
}
.karte.warnung { background: var(--warn-flaeche); border-color: var(--warn-linie); }
.karte.warnung .hilfe { color: var(--warn); }

label { display: block; font-weight: 550; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; padding: 10px 12px; font: inherit; color: inherit;
  border: 1px solid var(--linie); border-radius: 6px; background: var(--grund);
}
textarea { min-height: 200px; resize: vertical; font-size: 15px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--akzent); outline-offset: -1px; }
.feld { margin-bottom: 16px; }
.hilfe { font-size: 13px; color: var(--gedaempft); margin-top: 6px; }
/* Noch dezenter als .hilfe — fuer den Frei-Hook-Vertrauenssatz unter dem
   Upload-Knopf, der bewusst nicht wie ein Erklaerabsatz wirken soll. */
.hilfe-mini { font-size: 12px; color: var(--leise); margin-top: 8px; text-align: center; }

button {
  font: inherit; font-weight: 600; letter-spacing: -0.005em;
  padding: 11px 20px; border-radius: var(--radius);
  border: 1px solid var(--akzent); background: var(--akzent); color: #fff; cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
button:hover:not(:disabled) { background: var(--akzent-tief); border-color: var(--akzent-tief); }
button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
button:disabled { opacity: 0.55; cursor: default; }
button.sekundaer { background: var(--grund); color: var(--text); border-color: var(--linie-stark); }
button.sekundaer:hover:not(:disabled) { background: var(--flaeche); border-color: var(--text); }

/* Beschaeftigt-Zustand: Text weicht einem sich drehenden Ring, statt nur
   auf disabled+Opazitaet zu setzen (das allein wirkt eher "kaputt" als
   "arbeitet gerade"). Volle Farbe bleibt erhalten (opacity zurueckgesetzt),
   der Ring ist die einzige Bewegung. prefers-reduced-motion friert die
   Drehung global ein (siehe unten im Datei), der Ring bleibt dann als
   stiller Halbkreis stehen. */
button[aria-busy="true"] {
  --ring-hell: var(--akzent-hauch);
  --ring-dunkel: var(--akzent-tief);
  color: transparent !important;
  position: relative;
  pointer-events: none;
}
button[aria-busy="true"]:disabled { opacity: 1; }
button.sekundaer[aria-busy="true"] { --ring-hell: var(--linie-stark); --ring-dunkel: var(--gedaempft); }
button.gefahr[aria-busy="true"] { --ring-hell: var(--fehler-linie); --ring-dunkel: var(--fehler); }
button[aria-busy="true"]::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 15px; height: 15px; margin: -8px 0 0 -8px;
  border: 2px solid var(--ring-hell); border-top-color: transparent;
  border-radius: 50%;
  animation: knopf-drehen 1100ms linear infinite, knopf-ring-farbe 2200ms ease-in-out infinite alternate;
}
/* Nur die Drehung braucht den transparenten Ausschnitt oben — die Farbe
   wandert ueber die drei anderen Seiten, damit border-top-color transparent
   bleibt (Animationen ueberschreiben nur Eigenschaften, die sie selbst
   auflisten; border-color als Kurzform wuerde auch die obere Seite treffen). */
@keyframes knopf-drehen { to { transform: rotate(360deg); } }
@keyframes knopf-ring-farbe {
  from {
    border-right-color: var(--ring-hell); border-bottom-color: var(--ring-hell); border-left-color: var(--ring-hell);
  }
  to {
    border-right-color: var(--ring-dunkel); border-bottom-color: var(--ring-dunkel); border-left-color: var(--ring-dunkel);
  }
}
button.knapp { padding: 5px 10px; font-size: 13px; font-weight: 500; }
button.gefahr { background: var(--grund); color: var(--fehler); border-color: var(--linie); }
/* Login-Knoepfe mit Anbieter-Symbol (Google, LinkedIn, ...) */
button.mit-symbol { display: flex; align-items: center; justify-content: center; gap: 10px; }
button.mit-symbol svg { flex: none; }

.zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.zeile.ende { justify-content: flex-end; }

.meldung { display: none; margin: 16px 0; padding: 12px 14px; border-radius: 6px; font-size: 15px; }
.meldung p { margin: 0 0 8px; }
.meldung p:last-child { margin-bottom: 0; }
.meldung.fehler { background: var(--fehler-flaeche); color: var(--fehler); border: 1px solid var(--fehler-linie); }
.meldung.ok { background: var(--ok-flaeche); color: var(--ok); border: 1px solid var(--ok-linie); }
.meldung.warnung { background: var(--warn-flaeche); color: var(--warn); border: 1px solid var(--warn-linie); }
.meldung .hinweis { font-size: 14px; opacity: 0.85; }
.meldung button { margin-top: 8px; }

.zustimmung {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px;
}
.zustimmung input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.zustimmung label { font-weight: 400; font-size: 14.5px; margin: 0; }

/* ---- Profilfoto (Onboarding) ------------------------------------------ */

.foto-anzeige { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.foto-anzeige img {
  width: 64px; height: 64px; object-fit: cover;
  border: 1px solid var(--linie); border-radius: 4px; background: var(--flaeche);
}

.foto-zuschnitt {
  margin-top: 12px; padding: 16px; text-align: center;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px;
}
.foto-zuschnitt canvas {
  display: block; margin: 0 auto; cursor: grab; touch-action: none;
  background: var(--grund); border: 1px solid var(--linie-stark);
}
.foto-zuschnitt canvas:active { cursor: grabbing; }
.foto-zuschnitt .feld { text-align: left; margin: 12px 0 0; }
.foto-zuschnitt .zeile { justify-content: center; }

.wahl { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: 14.5px; }
.wahl input { width: auto; }

.eintrag { border: 1px solid var(--linie); border-radius: 6px; padding: 14px; margin-bottom: 10px; background: var(--grund); }
.eintrag .kopfzeile { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.eintrag .art {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gedaempft); background: var(--flaeche);
  padding: 3px 8px; border-radius: 2px; border: 1px solid var(--linie);
}
.eintrag .zeitraum { font-size: 13px; color: var(--gedaempft); margin-left: auto; }
.eintrag textarea { min-height: 76px; }
.eintrag .feld { margin-bottom: 10px; }
.eintrag.entfernt { opacity: 0.45; }

/* Wie button[aria-busy="true"] (siehe oben): ein sich drehender Ring statt
   nur gedaempfter Farbe - reine Textfarbe allein wirkt "eingefroren", nicht
   "arbeitet gerade". Reutzt bewusst dieselben Keyframes (knopf-drehen,
   knopf-ring-farbe) fuer dieselbe Bewegungssprache im ganzen Produkt. */
.lade { display: none; align-items: center; gap: 10px; color: var(--gedaempft); font-size: 15px; margin: 16px 0; }
.lade.an {
  display: flex;
  --ring-hell: var(--akzent-hauch);
  --ring-dunkel: var(--akzent-tief);
}
.lade.an::before {
  content: ""; flex: none; width: 15px; height: 15px;
  border: 2px solid var(--ring-hell); border-top-color: transparent;
  border-radius: 50%;
  animation: knopf-drehen 1100ms linear infinite, knopf-ring-farbe 2200ms ease-in-out infinite alternate;
}

.fuss { margin-top: 32px; font-size: 13px; color: var(--gedaempft); }

/* ---- Dashboard und Bewerbungs-Flow ---------------------------------- */

.zeile.zwischen { justify-content: space-between; align-items: flex-start; }
.ohne-abstand { margin-top: 0; margin-bottom: 4px; }
header.kopf .marke a { color: inherit; text-decoration: none; }

/* Kurzlabel für Status und Eigenschaften */
.marker {
  display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 2px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap;
  color: var(--gedaempft); background: var(--flaeche); border: 1px solid var(--linie);
}
.marker.gut    { color: var(--ok);      background: var(--ok-flaeche);    border-color: var(--ok-linie); }
.marker.teil   { color: var(--warn);    background: var(--warn-flaeche);  border-color: var(--warn-linie); }
.marker.luecke { color: var(--fehler);  background: var(--fehler-flaeche); border-color: var(--fehler-linie); }
.marker.grau   { color: var(--gedaempft); }

/* Fit-Score */
.score { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.score.gross { font-size: 40px; letter-spacing: -0.04em; }
.score.gut    { color: var(--ok); }
.score.mittel { color: var(--warn); }
.score.schwach{ color: var(--fehler); }

/* Dringlichkeits-Angebot nach dem Frei-Check (bewerbung.html #kauf-hinweis,
   index.html Analogon) — bewusst kraeftiger als eine normale .karte, damit
   der Sprung vom Score direkt zum Angebot ohne weiteren Text auffaellt. */
.angebot-block {
  background: var(--akzent-hauch);
  border: 2px solid var(--akzent);
}
.angebot-block h2 { margin-top: 0; }
.countdown {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--akzent-tief);
  margin: 10px 0;
}
.risk-reversal { font-size: 15px; color: var(--gedaempft); margin: 6px 0 0; }

/* Wertversprechen-Liste ("Das bekommst du") — dieselbe Vorzeichen-Optik
   wie .preise ul, aber eigenstaendig nutzbar ausserhalb einer Preiskarte. */
.haken-liste { list-style: none; margin: 16px 0 0; padding: 0; font-size: 15.5px; line-height: 1.7; }
.haken-liste li { position: relative; padding-left: 26px; }
.haken-liste li::before {
  content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700;
}

/* Neutrale Liste ohne erzwungenes Vorzeichen — fuer Zeilen, die ihr eigenes
   Symbol schon als Text mitbringen (Teaser-Zusammenfassung: ✓/~/○,
   gesperrte Liste: 🔒), damit .haken-liste's gruenes ✓ dort nicht doppelt
   erscheint. */
.klare-liste { list-style: none; margin: 16px 0 0; padding: 0; font-size: 15.5px; line-height: 1.8; }
.cta-gross {
  width: 100%;
  font-size: 18px;
  padding: 16px 20px;
  margin-top: 4px;
}

.balken {
  margin-top: 14px; height: 6px; border-radius: 0;
  background: var(--flaeche); border: 1px solid var(--linie); overflow: hidden;
}
.balken-fuell {
  height: 100%; width: 0; background: var(--akzent);
  transition: width 240ms ease-out;
}

/* Anforderungsliste: der farbige Rand macht Lücken auf einen Blick sichtbar,
   ohne dass Farbe die einzige Information ist — der Status steht als Text daneben. */
.anforderung { border-left-width: 3px; }
.anforderung.match      { border-left-color: var(--ok); }
.anforderung.weak_match { border-left-color: var(--warn); }
.anforderung.gap        { border-left-color: var(--fehler); }

/* Generierte Unterlagen */
.ausgabe {
  margin: 12px 0 0; padding: 16px; max-height: 460px; overflow: auto;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap; word-break: break-word;
}

/* Gerenderte Vorschau von Lebenslauf/Anschreiben — dieselbe Ansicht dient
   dem Bildschirm und, per @media print, dem "Als PDF herunterladen". */
.dokument-vorschau {
  margin: 14px 0 0; padding: 32px 36px;
  background: var(--grund); border: 1px solid var(--linie); border-radius: var(--radius);
  line-height: 1.55;
}
.dokument-vorschau .dokument-kopf {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  margin: 0 0 18px; padding-bottom: 14px; border-bottom: 2px solid var(--text);
}
.dokument-vorschau .dokument-kopf h1 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.02em; }
.dokument-vorschau .dokument-kopf .kontakt { margin: 0; font-size: 13px; color: var(--gedaempft); }
.dokument-vorschau .dokument-foto { flex: none; width: 76px; height: 76px; object-fit: cover; }
.dokument-vorschau h2 {
  margin: 20px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--linie);
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em;
}
.dokument-vorschau h2:first-child { margin-top: 0; }
.dokument-vorschau h3 { margin: 12px 0 2px; font-size: 14.5px; font-weight: 600; }
.dokument-vorschau p { margin: 0 0 10px; font-size: 14.5px; }
.dokument-vorschau ul { margin: 4px 0 12px; padding-left: 20px; }
.dokument-vorschau li { margin-bottom: 4px; font-size: 14.5px; }
.dokument-vorschau strong { font-weight: 600; }

/* ---- Fit-Check ------------------------------------------------------- */

.fortschritt { margin: 0 0 20px; font-size: 14px; color: var(--gedaempft); }
.fortschritt .balken { margin-top: 8px; }

fieldset.frage {
  margin: 0 0 14px; padding: 16px; border: 1px solid var(--linie);
  border-radius: var(--radius); background: var(--grund);
}
/* legend sitzt normalerweise AUF der Rahmenlinie und bricht bei mehrzeiligen
   Fragen aus dem Kasten aus. float+100% zieht es in den normalen Fluss zurueck;
   .skala raeumt den Float mit clear wieder auf. */
fieldset.frage legend {
  float: left; width: 100%; padding: 0; margin-bottom: 2px;
  font-size: 15.5px; line-height: 1.5; font-weight: 500;
}
.frage-nr { color: var(--gedaempft); font-variant-numeric: tabular-nums; }

/* 5er-Skala: als Reihe, auf schmalen Displays untereinander. Die Zahl bleibt
   immer sichtbar, die Textanker nur an den Enden — sonst wird es unlesbar. */
/* Feste 5 Spalten statt Umbruch — sonst entsteht auf schmalen Displays eine
   ungleiche 3+2-Reihe, die die Skala optisch verzerrt. */
.skala {
  clear: both; display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 8px; margin-top: 14px;
}
.stufe {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 0; padding: 10px 6px; font-weight: 400; font-size: 12px; text-align: center;
  border: 1px solid var(--linie); border-radius: 6px; background: var(--grund); cursor: pointer;
}
.stufe:hover { border-color: var(--akzent); }
.stufe input { margin: 0; width: 16px; height: 16px; accent-color: var(--akzent); }
.stufe-zahl { font-size: 15px; font-weight: 600; }
.stufe-text { color: var(--gedaempft); line-height: 1.3; }
.stufe:has(input:checked) { border-color: var(--akzent); background: var(--akzent-hauch); }
.stufe:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 1px; }

.dimension { margin-bottom: 16px; }
.dimension:last-child { margin-bottom: 0; }
.dimension .balken { margin-top: 6px; }

/* Auf schmalen Displays reichen die Zahlen: die Bedeutung der Endpunkte steht
   bereits im Einleitungstext ueber dem Fragebogen. */
@media (max-width: 560px) {
  .stufe { padding: 10px 2px; }
  .stufe-text { display: none; }
}

/* ---------- Einwilligung zur Speicherung im Browser ---------- */

.ew-huelle {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

.ew-karte {
  pointer-events: auto;
  width: 100%;
  max-width: 560px;
  background: var(--grund);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
  padding: 20px 22px;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.ew-titel { font-size: 17px; margin: 0; letter-spacing: -0.01em; }
.ew-text  { margin: 0; font-size: 14.5px; line-height: 1.55; }
.ew-leise { color: var(--gedaempft); }
.ew-fein  { display: block; color: var(--gedaempft); font-size: 12.5px; margin-top: 2px; }

.ew-liste { display: grid; gap: 12px; }

.ew-zeile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
}
.ew-zeile input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--akzent); }
.ew-zeile-text { font-size: 14px; line-height: 1.5; }

.ew-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Ablehnen und Annehmen sind bewusst gleich gestaltet — keine Gestaltung,
   die zur Zustimmung draengt. */
.ew-knopf {
  flex: 1 1 auto;
  min-width: 140px;
  font: inherit;
  font-size: 14.5px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--linie);
  background: var(--grund);
  color: var(--text);
  cursor: pointer;
}
.ew-knopf:hover { background: var(--flaeche); }
.ew-knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.ew-betont { border-color: var(--text); font-weight: 550; }

@media (max-width: 480px) {
  .ew-knopf { flex-basis: 100%; }
}

/* ---------- Startseite und Ratgeber ---------- */

.weit { max-width: 900px; }

header.kopf nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
header.kopf nav a {
  font-size: 14.5px; font-weight: 500; color: var(--gedaempft);
  text-decoration: none; letter-spacing: -0.008em;
}
header.kopf nav a:hover { color: var(--text); }
header.kopf nav a.betont {
  color: var(--grund); background: var(--text); font-weight: 600;
  padding: 7px 14px; border-radius: var(--radius);
}
header.kopf nav a.betont:hover { background: var(--akzent); }
header.kopf .rest + nav { margin-left: 22px; }
@media (max-width: 620px) {
  header.kopf nav { gap: 12px; }
  /* Nur die direkten Navigationslinks ausblenden. Ohne den Kindselektor
     traefe die Regel auch die Links im Sprachumschalter und liesse dort
     einen leeren Rahmen stehen. */
  header.kopf nav > a:not(.betont) { display: none; }
}

.buehne { padding: 72px 0 56px; border-bottom: 1px solid var(--text); margin-bottom: 48px; }
.buehne h1 {
  font-size: clamp(34px, 6.4vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 15ch;
  text-wrap: balance;
}
.buehne .aussage {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--gedaempft);
  max-width: 56ch;
  margin: 0 0 32px;
}
.buehne .knopfzeile { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.buehne .knopfzeile a.tat {
  display: inline-block; font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  padding: 14px 26px; border-radius: var(--radius);
  background: var(--akzent); color: #fff; border: 1px solid var(--akzent);
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease;
}
.buehne .knopfzeile a.tat:hover { background: var(--akzent-tief); border-color: var(--akzent-tief); }
.buehne .knopfzeile a.tat:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.buehne .knopfzeile a.leise {
  font-size: 15px; font-weight: 500; color: var(--gedaempft);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.buehne .knopfzeile a.leise:hover { color: var(--text); }

.schritte {
  list-style: none; padding: 0; margin: 0; counter-reset: s;
  display: grid; gap: 1px; background: var(--linie);
  border: 1px solid var(--linie);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.schritte li {
  counter-increment: s;
  background: var(--grund); padding: 22px 20px 24px;
  display: grid; gap: 8px; align-content: start;
}
.schritte li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.12em; color: var(--akzent);
}
.schritte li b { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.schritte li span { color: var(--gedaempft); font-size: 14.5px; line-height: 1.55; }

.preise { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.preise .karte { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.preise .karte { border-color: var(--linie-stark); padding: 24px; }
.preise .betrag { font-size: 34px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.preise .betrag small { font-size: 14px; font-weight: 500; color: var(--gedaempft); letter-spacing: -0.005em; }
.preise ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 15px; line-height: 1.6; color: var(--gedaempft); }
.preise ul li { position: relative; padding-left: 22px; }
.preise ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--akzent); font-weight: 700;
}
.preise .karte > a { margin-top: auto; padding-top: 8px; }
.preise .karte > a button { width: 100%; }

details.frage {
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: var(--grund); padding: 0; margin-bottom: 10px;
}
details.frage > summary {
  cursor: pointer; padding: 15px 18px; font-weight: 600; font-size: 15.5px;
  letter-spacing: -0.012em;
  list-style: none; display: flex; gap: 12px; align-items: baseline;
}
details.frage[open] { border-color: var(--linie-stark); }
details.frage > summary::-webkit-details-marker { display: none; }
details.frage > summary::after {
  content: "+"; margin-left: auto; color: var(--gedaempft); font-weight: 400; font-size: 18px;
}
details.frage[open] > summary::after { content: "–"; }
details.frage > summary:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; }
details.frage .antwort { padding: 0 18px 16px; font-size: 15px; line-height: 1.6; color: var(--gedaempft); }
details.frage .antwort p { margin: 0 0 10px; }
details.frage .antwort p:last-child { margin-bottom: 0; }

/* Ratgeberartikel */
article.text { max-width: 68ch; }
article.text h1 { font-size: clamp(28px, 4.4vw, 38px); letter-spacing: -0.04em; margin-bottom: 12px; }
article.text h2 { margin-top: 40px; }
article.text h3 { font-size: 16.5px; margin: 26px 0 8px; }
article.text p { margin: 0 0 14px; line-height: 1.65; }
article.text ul, article.text ol { margin: 0 0 16px; padding-left: 22px; line-height: 1.65; }
article.text li { margin-bottom: 7px; }
article.text .datum {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--leise); margin: 0 0 28px;
}
article.text blockquote {
  margin: 0 0 18px; padding: 14px 18px; background: var(--flaeche);
  border-left: 2px solid var(--text); border-radius: 0;
  font-size: 15px; line-height: 1.6; color: var(--gedaempft);
}

.hinweiskasten {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 16px 18px; margin: 0 0 20px;
}
.hinweiskasten p { margin: 0; font-size: 15px; line-height: 1.6; }

.weiterlesen { display: grid; gap: 10px; margin-top: 12px; }
.weiterlesen a {
  display: block; padding: 18px 20px; background: var(--grund);
  border: 1px solid var(--linie); border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color 120ms ease, transform 120ms ease;
}
.weiterlesen a:hover { border-color: var(--text); }
.weiterlesen a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.weiterlesen b { display: block; margin-bottom: 5px; font-size: 16px; letter-spacing: -0.015em; }
.weiterlesen span { font-size: 14.5px; color: var(--gedaempft); }

/* ---------- Tabellen in den Rechtstexten und im Ratgeber ---------- */

table {
  width: 100%; border-collapse: collapse; margin: 0 0 20px;
  border: 1px solid var(--linie); background: var(--grund); font-size: 15px;
}
th {
  text-align: left; padding: 11px 14px; background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gedaempft);
}
td { padding: 12px 14px; border-bottom: 1px solid var(--linie); vertical-align: top; line-height: 1.5; }
tr:last-child td { border-bottom: none; }

code {
  font-family: var(--mono); font-size: 0.87em;
  background: var(--akzent-hauch); padding: 1px 5px; border-radius: 2px;
}

a { color: var(--akzent); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

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

/* ---------- Grundfläche je Seitenart ----------
   Startseite, Ratgeber und Rechtstexte stehen auf Weiß — dort trägt der Text.
   Die App-Seiten behalten den grauen Grund, weil dort weiße Karten auf einer
   Fläche liegen und den Unterschied brauchen. */

body:has(.buehne),
body:has(article.text),
body:has(.weiterlesen) {
  background: var(--grund);
}

body:has(.buehne) .karte,
body:has(article.text) .karte {
  background: var(--flaeche);
  border-color: var(--linie);
}

body:has(.buehne) .hinweiskasten,
body:has(article.text) .hinweiskasten {
  background: var(--flaeche);
  border-color: var(--linie);
}

body:has(.buehne) .weiterlesen a,
body:has(article.text) .weiterlesen a {
  background: var(--grund);
  border-color: var(--linie-stark);
}

/* ---------- Vorschau des Abgleichs auf der Startseite ----------
   Kein Bild, sondern echter Text in einem Rahmen: skaliert verlustfrei,
   laedt nichts nach, ist vorlesbar und bleibt bei Textvergroesserung heil. */

.vorschau {
  margin: 40px 0 0;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: var(--grund);
  overflow: hidden;
}

.vorschau-leiste {
  display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
  padding: 11px 16px;
  background: var(--text); color: var(--grund);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase;
}
.vorschau-leiste .stelle { margin-left: auto; color: #A9B0BE; letter-spacing: 0.06em; }

.vorschau-koerper {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1px;
  background: var(--linie);
}
.vorschau-spalte { background: var(--grund); padding: 20px; }

.vorschau-titel {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--leise); margin: 0 0 14px;
}

.anzeigezeile {
  font-size: 14.5px; line-height: 1.6; color: var(--gedaempft);
  margin: 0 0 10px; padding-left: 14px; position: relative;
}
.anzeigezeile::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; background: var(--linie-stark);
}
.anzeigezeile b { color: var(--text); font-weight: 600; box-shadow: inset 0 -7px 0 var(--akzent-hauch); }

.vorschau-wert { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.vorschau-wert .zahl { font-size: 40px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.vorschau-wert .von { font-family: var(--mono); font-size: 11px; color: var(--leise); letter-spacing: 0.08em; }

.vorschau-balken { height: 5px; background: var(--flaeche); border: 1px solid var(--linie); margin-bottom: 20px; }
.vorschau-balken i { display: block; height: 100%; width: 78%; background: var(--akzent); }

.treffer { display: grid; gap: 12px; }
.treffer > div {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 0 10px;
  padding-left: 12px; border-left: 2px solid var(--linie);
}
.treffer .zeichen {
  grid-column: 1; grid-row: 1 / span 2;
  font-family: var(--mono); font-size: 14px; font-weight: 500; line-height: 1.45;
}
.treffer b { grid-column: 2; grid-row: 1; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
/* :not(.zeichen) ist noetig — sonst zieht diese Regel das Statuszeichen
   in die zweite Spalte und legt es ueber die Bezeichnung. */
.treffer span:not(.zeichen) {
  grid-column: 2; grid-row: 2;
  font-size: 13.5px; line-height: 1.5; color: var(--gedaempft); margin-top: 2px;
}

.treffer .erfuellt      { border-left-color: var(--ok); }
.treffer .erfuellt .zeichen { color: var(--ok); }
.treffer .teilweise     { border-left-color: var(--warn); }
.treffer .teilweise .zeichen { color: var(--warn); }
.treffer .offen         { border-left-color: var(--fehler); }
.treffer .offen .zeichen { color: var(--fehler); }

.vorschau-fuss {
  padding: 12px 16px; border-top: 1px solid var(--linie); background: var(--flaeche);
  font-size: 13.5px; color: var(--gedaempft);
}

@media (max-width: 700px) {
  .vorschau-koerper { grid-template-columns: minmax(0, 1fr); }
  .vorschau-wert .zahl { font-size: 34px; }
}

/* ---------- Sprachumschalter ---------- */

.sprache {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--linie-stark); border-radius: var(--radius);
  overflow: hidden; flex: none;
}
.sprache a {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 8px; text-decoration: none;
  color: var(--gedaempft); background: var(--grund);
}
.sprache a + a { border-left: 1px solid var(--linie-stark); }
.sprache a:hover { color: var(--text); background: var(--flaeche); }
.sprache a[aria-current="true"] { background: var(--text); color: var(--grund); }

/* ---------- Gestaltung: Rhythmus, Tiefe, ein Akzentmoment ----------
   Die Richtung bleibt klar und modern. Was hier dazukommt, ist kein
   Schmuck, sondern Ordnung: eine Marke ueber der Ueberschrift, Nummern an
   den Abschnitten, etwas Tiefe auf den Flaechen, die man anklicken kann. */

/* Akzentfeld hinter der Buehne — sehr zurueckhaltend, nur eine Ahnung */
body:has(.buehne) { position: relative; }
body:has(.buehne)::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 620px; z-index: -1;
  background:
    radial-gradient(120% 100% at 12% 0%, var(--akzent-hauch) 0%, transparent 62%),
    linear-gradient(var(--grund), var(--grund));
  pointer-events: none;
}

/* Marke ueber der Ueberschrift */
.marke-oben {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--akzent);
  margin: 0 0 20px;
}
.marke-oben::before {
  content: ""; width: 22px; height: 1px; background: var(--akzent); display: block;
}

/* Abschnittsmarken mit Nummer — geben der Seite eine Gliederung,
   die man beim Ueberfliegen sieht */
.abschnitt { padding-top: 8px; }
.abschnitt > .marke-abschnitt {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--leise);
  padding-bottom: 10px; margin-bottom: 22px;
  border-bottom: 1px solid var(--linie);
}
.abschnitt > .marke-abschnitt b { color: var(--akzent); font-weight: 500; }
.abschnitt h2 { margin-top: 0; }

/* Tiefe auf anklickbaren Flaechen */
.weiterlesen a {
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.weiterlesen a:hover {
  border-color: var(--text);
  box-shadow: 0 6px 20px rgba(11, 13, 18, .07);
  transform: translateY(-1px);
}

.schritte li { transition: background 140ms ease; }
.schritte li:hover { background: var(--flaeche); }

/* Preiskarten: eine davon fuehrt */
.preise .karte { position: relative; transition: box-shadow 140ms ease; overflow: hidden; }
.preise .karte:hover { box-shadow: 0 6px 20px rgba(11, 13, 18, .07); }
.preise .karte.fuehrend {
  border-color: var(--akzent); background: var(--akzent-hauch); padding-top: 0;
  box-shadow: 0 10px 28px rgba(22, 51, 232, .14);
}
.preise .karte.fuehrend .karte-marke {
  margin: 0 -24px 14px; padding: 9px 24px;
  background: var(--akzent); color: #fff;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase; text-align: center;
}

/* Vorschau bekommt Tiefe statt nur Kontur */
.vorschau { box-shadow: 0 10px 34px rgba(11, 13, 18, .09); }

/* Fusszeile ordnen */
main > .fuss {
  border-top: 1px solid var(--linie);
  padding-top: 22px;
}
main > .fuss a { color: var(--gedaempft); text-decoration: none; }
main > .fuss a:hover { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .weiterlesen a:hover { transform: none; }
}

/* ---------- Preis-Sektion: Gruppen-Label und gemeinsamer CTA ----------
   Kleine, eigenstaendige Ergaenzung fuer #preise. Reutzt die Typografie
   von .vorschau-titel (Label) und .buehne .knopfzeile a.tat (Knopf), ohne
   deren Regeln anzufassen — so bleibt der Rest der Seite unberuehrt. */

.preise-label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--leise); margin: 0 0 10px;
}
.preise-label:not(:first-child) { margin-top: 26px; }

.preise-cta { text-align: center; margin: 30px 0 4px; }
.preise-cta a.tat {
  display: inline-block; font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  padding: 14px 26px; border-radius: var(--radius);
  background: var(--akzent); color: #fff; border: 1px solid var(--akzent);
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease;
}
.preise-cta a.tat:hover { background: var(--akzent-tief); border-color: var(--akzent-tief); }
.preise-cta a.tat:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.preise-cta p.hilfe { margin: 10px 0 0; }

/* ---------- Drucken ----------
   Ohne diese Regeln schnitt der Browser-eigene Druck (Cmd/Strg+P) laengere
   Lebenslaeufe und Anschreiben mitten im Text ab: .ausgabe hat fuer die
   Bildschirmansicht eine feste Hoehe mit Bildlauf, und Bildlauf existiert
   auf Papier nicht — der Inhalt dahinter verschwand kommentarlos. Die
   Aufhebung der Begrenzung ist der eigentliche Zweck dieses Blocks; das
   Ausblenden der Bedienelemente ist ein Zusatznutzen, der denselben
   gemeinsamen Selektoren folgt und daher risikolos mitgeht. */

@page {
  margin: 18mm 16mm;
}

@media print {
  header.kopf,
  nav.app-nav,
  [data-kopieren],
  [data-laden],
  #cv-pdf,
  #brief-pdf,
  [data-abmelden],
  .sprache,
  .ew-huelle,
  .meldung,
  .lade,
  main > .fuss,
  footer.fuss {
    display: none !important;
  }

  .ausgabe {
    max-height: none;
    overflow: visible;
    border: none;
    background: none;
    padding: 0;
  }

  body { background: #fff; }

  /* Kein Umbruch mitten im Briefkopf, einem Foto oder einer Aufzaehlung —
     das sah zuvor abgeschnitten aus, wenn eine Seitengrenze mittendurch lief. */
  .dokument-kopf,
  .dokument-vorschau li,
  .dokument-vorschau h2,
  .dokument-vorschau h3 {
    break-inside: avoid;
  }
  .dokument-vorschau h2,
  .dokument-vorschau h3 {
    break-after: avoid;
  }

  /* "Als PDF herunterladen" (bewerbung.html): druckt nur EIN Dokument,
     ohne Seitenrahmen, Ueberschrift oder Bedienelemente drumherum — der
     Rest der App bleibt fuer diesen Druckvorgang unsichtbar. */
  body.drucke-nur-lebenslauf #brief-karte,
  body.drucke-nur-anschreiben #cv-karte,
  body.drucke-nur-lebenslauf #schritt-unterlagen > h1,
  body.drucke-nur-anschreiben #schritt-unterlagen > h1,
  body.drucke-nur-lebenslauf #schritt-unterlagen > .lead,
  body.drucke-nur-anschreiben #schritt-unterlagen > .lead,
  body.drucke-nur-lebenslauf #schritt-unterlagen > .zeile,
  body.drucke-nur-anschreiben #schritt-unterlagen > .zeile,
  body.drucke-nur-lebenslauf #schritt-unterlagen > p.hilfe,
  body.drucke-nur-anschreiben #schritt-unterlagen > p.hilfe,
  body.drucke-nur-lebenslauf .fortschritt,
  body.drucke-nur-anschreiben .fortschritt,
  body.drucke-nur-lebenslauf .karte .zeile.zwischen,
  body.drucke-nur-anschreiben .karte .zeile.zwischen {
    display: none !important;
  }
  body.drucke-nur-lebenslauf .karte,
  body.drucke-nur-anschreiben .karte,
  body.drucke-nur-lebenslauf .dokument-vorschau,
  body.drucke-nur-anschreiben .dokument-vorschau {
    border: none; padding: 0; margin: 0;
  }
}
