/* Leilas Bewerbungsprogramm — Oberfläche.

   Machart und Farbwelt sind bewusst dieselben wie in Thomas' Programm: Er
   wollte „die gleiche Optik". Was hier anders ist, ist nur, was anders sein
   muss — der Name, das Symbol und die Merkmale, die es dort nicht gibt
   (Einstiegsstelle, Stelle im Fach).

   Die Farben stehen alle hier oben in Variablen. Sobald Leilas Lebenslauf
   vorliegt, werden sie an dessen Farbwelt angeglichen — dann ist das ein
   Eingriff an einer Stelle und nicht an hundert. */

:root {
  --petrol: #14596b;
  --petrol-hell: #1e7a8f;
  --petrol-dunkel: #0f4453;

  /* Schrift durchgehend dunkel. Blasse Erklärzeilen sehen im Entwurf ruhig
     aus, sind am Bildschirm aber anstrengend — und gerade die liest man
     ständig. Drei Stufen, alle nah an Schwarz. */
  --tinte: #0d141a;
  --grau: #2c363f;
  --grau-hell: #4a5761;

  /* Blass ist nur noch, was auch blass sein soll. */
  --blass: #98a4ac;
  --linie: #c9d4d9;
  --linie-zart: #e3eaed;
  --flaeche: #f4f7f8;
  --weiss: #ffffff;
  --bernstein: #d99a2b;
  --gruen: #2f8f5b;
  --rot: #b8452f;

  --radius: 10px;
  --schatten: 0 1px 2px rgba(26, 39, 51, 0.06), 0 4px 14px rgba(26, 39, 51, 0.05);
  --schiene-breite: 244px;
  --titel-hoehe: 46px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  color: var(--tinte);
  background: var(--flaeche);
  -webkit-font-smoothing: antialiased;
}

.verborgen {
  display: none !important;
}

/* --- Titelleiste --------------------------------------------------------- */

.titelleiste {
  height: var(--titel-hoehe);
  background: linear-gradient(180deg, var(--petrol), var(--petrol-dunkel));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  user-select: none;
}

.titelleiste-marke {
  display: flex;
  align-items: center;
  gap: 10px;
}

.marke-symbol {
  width: 24px;
  height: 24px;
  flex: none;
}

.marke-name {
  color: var(--weiss);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1px;
}

.marke-trenner {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
}

.marke-person {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.titel-hinweis {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

/* --- Rahmen und Schiene --------------------------------------------------- */

.rahmen {
  display: flex;
  height: calc(100% - var(--titel-hoehe));
}

.schiene {
  width: var(--schiene-breite);
  flex: none;
  background: var(--weiss);
  border-right: 1px solid var(--linie-zart);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.schiene-gruppe {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.schiene-gruppentitel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--grau-hell);
  padding: 0 10px 6px;
}

.schiene-punkt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--grau);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}

.schiene-punkt svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  fill: currentColor;
}

/* Symbole, die nur Umrisse sind, dürfen nicht gefüllt werden. */
.schiene-punkt svg [fill="none"] {
  fill: none;
}

.schiene-punkt > span {
  flex: 1;
}

.schiene-punkt:hover {
  background: var(--flaeche);
  color: var(--tinte);
}

.schiene-punkt.aktiv {
  background: var(--petrol);
  color: var(--weiss);
  font-weight: 600;
}

.schiene-zahl {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 9px;
  text-align: center;
  background: var(--petrol);
  color: var(--weiss);
}

.schiene-punkt.aktiv .schiene-zahl {
  background: rgba(255, 255, 255, 0.24);
}

.schiene-marke {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 1px 6px;
  border-radius: 9px;
  background: var(--linie-zart);
  color: var(--grau-hell);
}

.schiene-punkt.aktiv .schiene-marke {
  background: rgba(255, 255, 255, 0.2);
  color: var(--weiss);
}

/* Stand der Suche, unten in der Schiene */

.suchstand {
  margin-top: auto;
  padding: 11px 12px;
  border: 1px solid var(--linie-zart);
  border-radius: var(--radius);
  background: var(--flaeche);
}

.suchstand-kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--grau-hell);
  margin-bottom: 7px;
}

.suchstand-kopf strong {
  color: var(--tinte);
  font-size: 13px;
}

.suchstand-balken {
  height: 5px;
  border-radius: 3px;
  background: var(--linie-zart);
  overflow: hidden;
}

.suchstand-balken i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--petrol);
  transition: width 0.3s;
}

.suchstand-hinweis {
  margin: 7px 0 0;
  font-size: 11.5px;
  color: var(--grau-hell);
  line-height: 1.35;
}

/* --- Bühne ---------------------------------------------------------------- */

.buehne {
  flex: 1;
  overflow-y: auto;
  padding: 22px 26px 60px;
}

.buehne:focus {
  outline: none;
}

.seitenkopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.seitenkopf h1 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.2px;
}

.seitenkopf p {
  margin: 0;
  color: var(--grau-hell);
  font-size: 13px;
  max-width: 68ch;
  line-height: 1.5;
}

.kopfknoepfe {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* --- Knöpfe --------------------------------------------------------------- */

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--weiss);
  color: var(--tinte);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
}

.knopf:hover {
  border-color: var(--petrol);
  color: var(--petrol);
}

.knopf.haupt {
  background: var(--petrol);
  border-color: var(--petrol);
  color: var(--weiss);
}

.knopf.haupt:hover {
  background: var(--petrol-hell);
  border-color: var(--petrol-hell);
  color: var(--weiss);
}

.knopf.klein {
  padding: 5px 10px;
  font-size: 12px;
}

.knopf:disabled {
  color: var(--blass);
  border-color: var(--linie-zart);
  background: var(--flaeche);
  cursor: default;
}

/* --- Karten --------------------------------------------------------------- */

.karte {
  background: var(--weiss);
  border: 1px solid var(--linie-zart);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.karte > h2 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 650;
}

.karte > h2 + p {
  margin: 0 0 13px;
  color: var(--grau-hell);
  font-size: 12.5px;
  line-height: 1.5;
}

/* Kartenkopf mit Ampel rechts */

.karte-kopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.karte-kopf h2 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 650;
}

.karte-kopf p {
  margin: 0;
  color: var(--grau-hell);
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 62ch;
}

.ampel {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.ampel i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.ampel.gruen {
  background: rgba(47, 143, 91, 0.12);
  color: var(--gruen);
}

.ampel.gruen i {
  background: var(--gruen);
}

.ampel.gelb {
  background: rgba(217, 154, 43, 0.16);
  color: #8a5f0f;
}

.ampel.gelb i {
  background: var(--bernstein);
}

/* --- Eingabefelder -------------------------------------------------------- */

.feld {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.feld label {
  font-size: 12px;
  font-weight: 650;
  color: var(--grau);
}

.feld textarea {
  padding: 10px 12px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
  color: var(--tinte);
  background: var(--weiss);
  width: 100%;
  max-width: 760px;
  resize: vertical;
}

.feld textarea:focus {
  outline: none;
  border-color: var(--petrol);
}

.feld input,
.feld select {
  padding: 9px 12px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: var(--tinte);
  background: var(--weiss);
  width: 100%;
  max-width: 520px;
}

.feld input:focus,
.feld select:focus {
  outline: none;
  border-color: var(--petrol);
}

.feld input::placeholder {
  color: var(--blass);
}

.feld-hinweis {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--grau-hell);
  max-width: 72ch;
}

code {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--flaeche);
  border: 1px solid var(--linie-zart);
  color: var(--grau);
}

.knopfreihe {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Aufklappbare Hilfe — da, wenn man sie braucht, sonst aus dem Weg. */

.hilfe {
  margin-top: 12px;
  border-top: 1px solid var(--linie-zart);
  padding-top: 11px;
}

.hilfe summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--petrol);
}

.hilfe ol {
  margin: 9px 0 0;
  padding-left: 20px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--grau);
  max-width: 76ch;
}

.hilfe li {
  margin-bottom: 4px;
}

/* --- Kacheln auf der Übersicht ---------------------------------------------
   Übernommen aus Thomas' Programm (`.kachelreihe`). Fünf Zahlen, die beim
   Öffnen sagen, wie die Lage ist. */

.kachelreihe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(163px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.kachel {
  background: var(--weiss);
  border: 1px solid var(--linie-zart);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 15px 17px 16px;
}

.kachel.betont {
  border-color: var(--petrol);
  border-left-width: 3px;
}

/* Kachel als Abkürzung — ein Klick führt dorthin, wo die Zahl herkommt. */
.kachel.klickbar {
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.kachel.klickbar:hover {
  border-color: var(--petrol);
  box-shadow: 0 2px 10px rgba(20, 89, 107, 0.14);
}

.kachel-titel {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--grau-hell);
  margin: 0 0 9px;
}

.kachel-zahl {
  font-size: 30px;
  font-weight: 650;
  line-height: 1;
  color: var(--tinte);
  letter-spacing: -0.5px;
}

.kachel-zahl small {
  font-size: 15px;
  font-weight: 500;
  color: var(--grau-hell);
  margin-left: 3px;
}

.kachel-fuss {
  margin: 9px 0 0;
  font-size: 12px;
  color: var(--grau);
  line-height: 1.4;
}

/* „Was heute ansteht" — die Liste der Handgriffe mit Knopf daneben. */

.anstehend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.anstehend li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--linie-zart);
  border-radius: 8px;
  background: var(--flaeche);
}

.anstehend-text {
  flex: 1;
  min-width: 0;
}

.anstehend-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--tinte);
}

.anstehend-text span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--grau);
  line-height: 1.45;
}

/* --- Zahlenreihe ---------------------------------------------------------- */

.zahlenreihe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.zahl {
  background: var(--weiss);
  border: 1px solid var(--linie-zart);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 14px 16px;
}

.zahl b {
  display: block;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.zahl span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--grau-hell);
}

.zahl.hervor {
  border-color: var(--petrol);
  border-left-width: 3px;
}

.zahl.hervor b {
  color: var(--petrol);
}

/* --- Schilder ------------------------------------------------------------- */

.schild {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 2px 8px;
  border-radius: 9px;
  background: var(--linie-zart);
  color: var(--grau);
  white-space: nowrap;
}

/* --- Fundkarten ------------------------------------------------------------
   Übernommen aus Thomas' Bewerbungsassistent (app/ui/stil.css). Dieselbe
   Machart für Stellenfunde und Vorschläge: Punktzahl im Kreis links, Inhalt
   rechts, Knopfreihe unten. Das Rad muss nicht neu erfunden werden — und wer
   beide Programme kennt, findet sich sofort zurecht. */

.fundliste {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.fund {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--weiss);
  border: 1px solid var(--linie-zart);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 17px 19px;
}

/* Weggelegtes tritt zurück, bleibt aber lesbar. */
.fund.weggelegt {
  background: var(--flaeche);
  box-shadow: none;
}

.fund.weggelegt .fund-kopf h3 {
  color: var(--grau);
}

/* Die Punktzahl im Kreis. Der Ton sagt beim Überfliegen, ob sich das Lesen
   lohnt — die Schwellen sind auf Leila eingestellt und liegen etwas tiefer
   als bei Thomas: Für eine Berufseinsteigerin ist eine 70 bereits ein
   sehr guter Treffer. */
.fund-punkte {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ton);
  background: var(--weiss);
  border: 2px solid var(--ton);
  margin-top: 2px;
}

.fund-inhalt {
  flex: 1 1 auto;
  min-width: 0;
}

.fund-kopf {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fund-kopf h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--tinte);
  line-height: 1.35;
}

.fund-firma {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--grau);
}

.fund-zeile {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.merkmal {
  font-size: 12px;
  color: var(--grau);
  background: var(--flaeche);
  border: 1px solid var(--linie-zart);
  border-radius: 20px;
  padding: 3px 10px;
}

.fund-herkunft {
  margin: 9px 0 0;
  font-size: 12.5px;
  color: var(--grau-hell);
}

.fund .knopfreihe {
  margin-top: 13px;
  gap: 7px;
}

/* --- Die Woche in der Akte -------------------------------------------------
   Sieben Kästchen, eines je Tag. Bei Thomas steht das als Balken in der
   Seitenleiste; im Browser ist mehr Platz, also hier als Reihe mit Zahlen. */

.wochenreihe {
  display: flex;
  gap: 7px;
}

.wochentag {
  flex: 1;
  text-align: center;
  padding: 9px 4px 7px;
  border: 1px solid var(--linie-zart);
  border-radius: 8px;
  background: var(--flaeche);
}

.wochentag b {
  display: block;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.1;
  color: var(--grau);
}

.wochentag i {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--grau-hell);
}

.wochentag.heute {
  border-color: var(--petrol);
  background: rgba(20, 89, 107, 0.07);
}

.wochentag.heute b,
.wochentag.heute i {
  color: var(--petrol);
}

/* Tage, die noch kommen, treten zurück — sonst sieht eine leere Woche
   am Montag aus wie ein Versäumnis. */
.wochentag.zukunft {
  background: var(--weiss);
  border-style: dashed;
}

.wochentag.zukunft b {
  color: var(--blass);
}

/* Das Auswahlfeld für den Stand, in der Knopfreihe. */
.statuswahl {
  padding: 7px 10px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--weiss);
  font: inherit;
  font-size: 12.5px;
  color: var(--tinte);
  cursor: pointer;
}

.statuswahl:focus {
  outline: none;
  border-color: var(--petrol);
}

/* Die Unterschrift zur Ansicht. Karierter Hintergrund, damit man sieht, ob
   sie wirklich freigestellt ist — auf Weiß fällt ein weißer Kasten nicht auf,
   im Brief dann schon. */
.unterschrift-vorschau {
  display: inline-block;
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background-color: var(--weiss);
  background-image:
    linear-gradient(45deg, #eef2f4 25%, transparent 25%, transparent 75%, #eef2f4 75%),
    linear-gradient(45deg, #eef2f4 25%, transparent 25%, transparent 75%, #eef2f4 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
}

.unterschrift-vorschau img {
  display: block;
  max-height: 90px;
  max-width: 100%;
}

.feld input[type="range"] {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 320px;
}

.feld input[type="file"] {
  padding: 7px 10px;
  font-size: 12.5px;
}

/* --- Briefvorschau ----------------------------------------------------------
   Ein Blatt, so wie der Brief gedruckt aussieht. Keine Spielerei: Erst auf
   dem Blatt sieht man, ob der Brief zu lang ist, ob die Anrede passt und ob
   das Anlagenverzeichnis stimmt. */

.briefblatt {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 4px;
  padding: 38px 46px 42px;
  max-width: 740px;
  font-family: Calibri, "Segoe UI", system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--tinte);
  box-shadow: 0 2px 14px rgba(13, 20, 26, 0.08);
}

.brief-kopfzeile {
  text-align: right;
  font-size: 12px;
  line-height: 1.5;
  color: var(--grau);
  margin-bottom: 30px;
}

.brief-kopfzeile b {
  display: block;
  font-size: 14px;
  color: var(--petrol);
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}

.brief-kopfzeile span {
  display: block;
}

.brief-empfaenger {
  margin-bottom: 26px;
  line-height: 1.5;
}

.brief-datum {
  text-align: right;
  margin-bottom: 22px;
  color: var(--grau);
}

.brief-betreff {
  font-weight: 700;
  margin-bottom: 18px;
}

.brief-anrede {
  margin-bottom: 14px;
}

.brief-absatz {
  margin: 0 0 13px;
  text-align: justify;
}

.brief-gruss {
  margin-top: 20px;
}

.brief-name {
  margin-top: 34px;
}

.brief-anlagen {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--grau);
}

/* --- Warnungen in der Karte ------------------------------------------------ */

.merker {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.merker li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  padding: 9px 12px;
  border-radius: 7px;
  border: 1px solid;
}

.merker li::before {
  flex: none;
  font-weight: 800;
  font-size: 12px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--weiss);
  margin-top: 1px;
}

.merker li.achtung {
  background: #fbeeeb;
  border-color: #eccdc5;
}

.merker li.achtung::before {
  content: "!";
  background: var(--rot);
}

.merker li.huerde {
  background: #fdf6e8;
  border-color: #f0dcb0;
}

.merker li.huerde::before {
  content: "!";
  background: var(--bernstein);
}

.merker li.hinweis {
  background: #eff5f7;
  border-color: #cfdfe4;
}

.merker li.hinweis::before {
  content: "i";
  background: var(--petrol);
}

/* --- Das Anschreiben: zugeklappt --------------------------------------------
   Der wichtigste Punkt an dieser Seite. Steht der volle Brieftext offen in
   jeder Karte, scrollt man bei fünf Vorschlägen durch fünfzehn Absätze und
   verliert den Überblick. Zugeklappt sieht man die Liste, und wer lesen will,
   klickt auf. Genau so macht es Thomas' Programm. */

.vorschlag-brief {
  margin: 12px 0 4px;
  border: 1px solid var(--linie-zart);
  border-radius: 8px;
  background: var(--flaeche);
}

.vorschlag-brief summary {
  cursor: pointer;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--petrol);
  font-weight: 600;
}

.vorschlag-text {
  padding: 4px 16px 14px;
  font-family: Calibri, "Segoe UI", system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--tinte);
  white-space: pre-wrap;
  max-width: 720px;
}

.schild.aktiv {
  color: var(--petrol);
  background: rgba(20, 89, 107, 0.09);
  border: 1px solid rgba(20, 89, 107, 0.24);
}

/* --- Werkzeugzeile über Listen -------------------------------------------- */

.werkzeuge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 13px;
}

.suchfeld {
  flex: 1;
  min-width: 190px;
  padding: 8px 12px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: var(--tinte);
  background: var(--weiss);
}

.suchfeld:focus {
  outline: none;
  border-color: var(--petrol);
}

.suchfeld::placeholder {
  color: var(--blass);
}

.reiter {
  display: inline-flex;
  border: 1px solid var(--linie);
  border-radius: 8px;
  overflow: hidden;
}

.reiter button {
  padding: 7px 13px;
  border: 0;
  border-right: 1px solid var(--linie);
  background: var(--weiss);
  color: var(--grau);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.reiter button:last-child {
  border-right: 0;
}

.reiter button.aktiv {
  background: var(--petrol);
  color: var(--weiss);
  font-weight: 600;
}

/* --- Meldungen ------------------------------------------------------------ */

.meldung {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px 15px;
  border: 1px solid var(--linie-zart);
  border-left: 3px solid var(--petrol);
  border-radius: var(--radius);
  background: var(--weiss);
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.meldung-symbol {
  flex: none;
  font-size: 15px;
  line-height: 1.3;
}

.meldung.warnung {
  border-left-color: var(--bernstein);
}

.meldung.fehler {
  border-left-color: var(--rot);
}

.meldung p {
  margin: 0;
}

.meldung p + p {
  margin-top: 5px;
}

.leer {
  padding: 34px 20px;
  text-align: center;
  color: var(--grau-hell);
  font-size: 13.5px;
  line-height: 1.6;
  border: 1px dashed var(--linie);
  border-radius: var(--radius);
  background: var(--weiss);
}

.leer strong {
  display: block;
  color: var(--tinte);
  font-size: 15px;
  margin-bottom: 5px;
}

/* --- Tabellen (Profilseite) ----------------------------------------------- */

.tafel {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tafel th,
.tafel td {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid var(--linie-zart);
  vertical-align: top;
}

.tafel th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--grau-hell);
  border-bottom-color: var(--linie);
}

.tafel td.zahl-rechts {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tafel tr:last-child td {
  border-bottom: 0;
}

.tafel .nebensache {
  color: var(--grau-hell);
  font-size: 12px;
}

/* --- Arbeitsanzeige -------------------------------------------------------- */

.arbeit {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 20, 26, 0.3);
  z-index: 50;
}

.arbeit-karte {
  width: min(420px, 90vw);
  background: var(--weiss);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(13, 20, 26, 0.22);
  padding: 26px 28px;
  text-align: center;
}

.arbeit-ring {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.arbeit-ring i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--petrol);
  animation: huepfen 1.1s infinite ease-in-out;
}

.arbeit-ring i:nth-child(2) {
  animation-delay: 0.16s;
}

.arbeit-ring i:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes huepfen {
  0%,
  70%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  35% {
    transform: translateY(-7px);
    opacity: 1;
  }
}

.arbeit-titel {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 650;
}

.arbeit-text {
  margin: 0;
  font-size: 13px;
  color: var(--grau-hell);
  line-height: 1.5;
}

.arbeit-schritt {
  margin: 11px 0 0;
  font-size: 12px;
  color: var(--petrol);
  min-height: 1.2em;
}

/* --- Anleitung ------------------------------------------------------------- */

.anleitung h2 {
  margin: 22px 0 7px;
  font-size: 15.5px;
  font-weight: 650;
}

.anleitung h2:first-child {
  margin-top: 0;
}

.anleitung p,
.anleitung li {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--grau);
  max-width: 76ch;
}

.anleitung ol,
.anleitung ul {
  padding-left: 20px;
  margin: 7px 0;
}

.anleitung li {
  margin-bottom: 5px;
}

.anleitung strong {
  color: var(--tinte);
}

/* --- Engere Fenster --------------------------------------------------------
   Das Programm ist für den Rechner gedacht, nicht fürs Handy — das war eine
   ausdrückliche Vorgabe. Trotzdem soll nichts brechen, wenn das Fenster nur
   halb aufgezogen ist oder auf einem kleineren Bildschirm läuft. Unter
   1100 px rückt die Schiene zusammen, unter 820 px zeigt sie nur noch die
   Symbole. */

@media (max-width: 1100px) {
  :root {
    --schiene-breite: 200px;
  }

  .buehne {
    padding: 18px 18px 50px;
  }
}

@media (max-width: 820px) {
  :root {
    --schiene-breite: 56px;
  }

  .schiene {
    padding: 12px 6px;
    align-items: center;
  }

  .schiene-gruppentitel,
  .schiene-punkt > span,
  .schiene-marke,
  .suchstand-kopf > span,
  .suchstand-hinweis,
  /* „60 / 277" passt in eine 56 px schmale Schiene nicht — ohne diese Zeile
     bliebe unten nur ein nackter Schrägstrich stehen. Die vordere Zahl, also
     die Treffer im Fach, ist die wichtigere; sie bleibt. */
  .stand-rest {
    display: none;
  }

  .schiene-punkt {
    justify-content: center;
    padding: 9px 0;
  }

  .suchstand {
    padding: 8px 6px;
    width: 100%;
  }

  .suchstand-kopf {
    justify-content: center;
    margin-bottom: 5px;
  }
}

/* Logbuch auf der Seite Verbrauch — das Neueste oben, ohne Querrollen. */
.logbuch {
  list-style: none;
  margin: 8px 0 0;
  padding: 4px 0;
  max-height: 420px;
  overflow-y: auto;
  background: var(--flaeche);
  border: 1px solid var(--linie-zart);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}

.logbuch li {
  display: grid;
  grid-template-columns: 92px 96px minmax(0, 1fr);
  gap: 10px;
  padding: 4px 14px;
}

.logbuch-zeit {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11.5px;
  color: var(--grau-hell);
  white-space: nowrap;
}

.logbuch-bereich {
  color: var(--grau);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.logbuch-text {
  overflow-wrap: anywhere;
}

.logbuch-start {
  border-top: 1px solid var(--linie-zart);
  margin-top: 4px;
  padding-top: 8px !important;
  color: var(--grau-hell);
}

.logbuch-start:first-child {
  border-top: 0;
  margin-top: 0;
}

.logbuch-fehler .logbuch-text {
  color: var(--rot);
}

@media (max-width: 620px) {
  .logbuch li {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 0;
  }
  .logbuch-text {
    grid-column: 1 / -1;
  }
}

/* --- Anmeldung (seit 18.11.2026) ----------------------------------------- */

.anmelde-flaeche {
  height: calc(100% - var(--titel-hoehe));
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 9vh 16px 40px;
}

.anmelde-karte {
  width: 100%;
  max-width: 400px;
  padding: 26px 28px 24px;
}

.anmelde-karte h1 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 650;
}

.anmelde-text {
  margin: 0 0 18px;
  color: var(--grau);
  line-height: 1.5;
}

.anmelde-karte .feld input {
  max-width: none;
  font-size: 14px;
  padding: 10px 12px;
}

.anmelde-karte .meldung {
  margin-bottom: 14px;
}

.anmelde-knoepfe {
  display: flex;
  gap: 8px;
  align-items: center;
}

.anmelde-knoepfe a.knopf {
  text-decoration: none;
}

.anmelde-knopf {
  justify-content: center;
  padding: 10px 18px;
  font-size: 14px;
}

#formAnmelden .anmelde-knopf {
  width: 100%;
}

/* Abmelden und Passwort in der Titelleiste — hell auf Petrol, unaufdringlich. */
.titel-zugang {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
}

.titel-zugang button,
.titel-zugang a {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  text-decoration: none;
}

.titel-zugang button:hover,
.titel-zugang a:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

@media (max-width: 620px) {
  .anmelde-karte {
    padding: 22px 18px 20px;
  }
}

.titelleiste-rechts {
  display: flex;
  align-items: center;
}
