/* Massstab: Jasmine. Grosse Schrift, viel Luft, klare Farben, Handy zuerst. */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --grund: #f6f7fb; --flaeche: #ffffff; --tinte: #1c2333; --leise: #6b7280;
  --akzent: #2563eb; --akzent-tinte: #ffffff;
  --gruen: #16a34a; --gelb: #d97706; --rot: #dc2626;
  --rand: #e5e7eb; --radius: 14px;
}
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 18px; line-height: 1.55;
  background: var(--grund); color: var(--tinte);
}
header {
  background: var(--flaeche); border-bottom: 1px solid var(--rand);
  padding: 12px 16px; display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.marke { font-size: 20px; font-weight: 700; text-decoration: none; color: var(--tinte); }
nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--akzent); font-weight: 600; }
nav a.leise { color: var(--leise); font-weight: 400; }
.wer { color: var(--leise); }
main { max-width: 860px; margin: 0 auto; padding: 20px 16px 60px; }
.schmal { max-width: 620px; margin: 0 auto; }
.mitte { text-align: center; padding-top: 8vh; }
.mitte form { text-align: left; }
h1 { font-size: 28px; margin: 18px 0 12px; }
h2 { font-size: 21px; margin: 22px 0 10px; }
p { margin: 8px 0; }
.gross { font-size: 20px; }
.leer, .leise-info { color: var(--leise); }
a { color: var(--akzent); }

/* Fristen: die Kernfunktion, deshalb die groessten Elemente der Seite. */
.frist {
  display: flex; align-items: center; gap: 14px;
  background: var(--flaeche); border: 1px solid var(--rand);
  border-left: 8px solid var(--gruen);
  border-radius: var(--radius); padding: 14px; margin: 10px 0;
}
.frist.gelb { border-left-color: var(--gelb); }
.frist.rot  { border-left-color: var(--rot); }
.frist-tage { min-width: 74px; text-align: center; }
.frist-tage strong { display: block; font-size: 26px; }
.frist-tage span { font-size: 13px; color: var(--leise); }
.frist-text { flex: 1; }
.frist-text a { font-weight: 600; text-decoration: none; color: var(--tinte); font-size: 19px; }
.frist-text small { display: block; color: var(--leise); }

.karte {
  display: block; background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--radius); padding: 14px; margin: 10px 0;
  text-decoration: none; color: var(--tinte);
}
.kartenliste .karte:hover { border-color: var(--akzent); }
.karte.arbeitet { border-style: dashed; }
.status { display: block; color: var(--leise); }
.status.gross { font-size: 20px; padding: 14px 0; }

.warnung { color: var(--rot); font-weight: 600; display: block; margin-top: 4px; }
.warnbox {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius);
  padding: 14px; margin: 14px 0;
}
.warnbox ul { margin: 8px 0 8px 22px; }
.verstanden {
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius);
  padding: 10px 14px; margin: 14px 0;
}
.verstanden small { color: var(--leise); }
.antwort { white-space: pre-wrap; }

.knopf {
  display: inline-block; background: var(--akzent); color: var(--akzent-tinte);
  border: 0; border-radius: 999px; padding: 12px 22px;
  font-size: 18px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.knopf.klein { padding: 8px 14px; font-size: 15px; white-space: nowrap; }
.knopf:hover { filter: brightness(1.08); }

form label { display: block; margin: 12px 0 4px; font-weight: 600; }
input[type=text], input[type=password], textarea {
  width: 100%; font-size: 18px; padding: 12px;
  border: 1px solid var(--rand); border-radius: 10px; background: var(--flaeche);
}
textarea { resize: vertical; }
form .knopf { margin-top: 14px; }

/* Chat: Gespraeche mit der Buero-KI */
.chat-verlauf {
  max-height: 55vh; overflow-y: auto; padding: 4px 2px; margin: 14px 0;
}
.blase {
  max-width: 85%; padding: 10px 14px; margin: 8px 0;
  border-radius: var(--radius); white-space: pre-wrap;
}
.blase.du {
  background: var(--akzent); color: var(--akzent-tinte);
  margin-left: auto; border-bottom-right-radius: 4px;
}
.blase.ki {
  background: var(--flaeche); border: 1px solid var(--rand);
  margin-right: auto; border-bottom-left-radius: 4px;
}

.ablage {
  display: block; border: 2px dashed var(--akzent); border-radius: var(--radius);
  padding: 40px 20px; text-align: center; cursor: pointer;
  background: var(--flaeche); font-size: 20px; font-weight: 600; color: var(--akzent);
  margin: 18px 0;
}
.ablage input { display: none; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .frist { flex-wrap: wrap; }
  .frist .knopf { width: 100%; text-align: center; }
}
