/* llms.txt-Generator – Oberfläche. Ergänzt unterseite.css im CD:
   Braun als Text, Türkis als Akzent, Sand als Fläche, weiche weiße Karten. */

:root {
  --lt-braun: #4e4037;
  --lt-grau: #7d7069;
  --lt-linie: #e6dfd9;
  --lt-feld: #fdfcfb;
  --lt-rand: #ded7d1;
  --lt-tuerkis: #0098da;
  --lt-tuerkis-dunkel: #007cb3;
  --lt-rot: #c0392b; --lt-rot-hell: #fdf2f0; --lt-rot-rand: #f2cdc7;
  --lt-gelb: #b07d20; --lt-gelb-hell: #fdf8ee; --lt-gelb-rand: #eeddb8;
  --lt-gruen: #3e7d5a; --lt-gruen-hell: #f1f8f4; --lt-gruen-rand: #c6e2d2;
}

.lt-bereich { max-width: 860px; margin: 0 auto; }
.lt-klein { font-size: 14px; font-weight: 400; color: var(--lt-grau); }
.lt-pflicht { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--lt-tuerkis); margin-left: 6px; }

/* ---------- Eingabe ---------- */

.lt-form { background: #fff; border-radius: 22px; padding: 28px 26px;
  box-shadow: 0 18px 50px rgba(78, 64, 55, .10); }
.lt-form > label { display: block; font-weight: 700; margin-bottom: 8px; }
.lt-eingabereihe { display: flex; gap: 12px; flex-wrap: wrap; }
.lt-eingabereihe input {
  flex: 1 1 280px; min-width: 0; font: inherit; font-size: 17px; color: var(--lt-braun);
  padding: 14px 16px; border: 1px solid var(--lt-rand); border-radius: 12px; background: var(--lt-feld);
}
.lt-eingabereihe input:focus { outline: 2px solid var(--lt-tuerkis); outline-offset: 1px; border-color: var(--lt-tuerkis); }
.lt-form button[type=submit], .lt-knopf {
  font: inherit; font-weight: 700; font-size: 17px; cursor: pointer;
  background: var(--lt-tuerkis); color: #fff; border: 0; border-radius: 12px; padding: 14px 26px;
  transition: background .2s;
}
.lt-form button[type=submit]:hover, .lt-knopf:hover { background: var(--lt-tuerkis-dunkel); }
.lt-form button[type=submit]:disabled { opacity: .6; cursor: wait; }
.lt-datenhinweis { margin-top: 16px; font-size: 14.5px; line-height: 1.6; color: var(--lt-grau); }
.lt-textknopf { font: inherit; background: none; border: 0; padding: 0; color: var(--lt-tuerkis);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lt-textknopf:hover { color: var(--lt-tuerkis-dunkel); }
#lt-eingabefehler { margin-top: 10px; color: var(--lt-rot); font-weight: 700; font-size: 15px; }

/* ---------- Fortschritt ---------- */

.lt-lauf { background: #fff; border-radius: 22px; padding: 30px 26px; text-align: center; margin-top: 22px;
  box-shadow: 0 18px 50px rgba(78, 64, 55, .10); }
.lt-balken-huelle { height: 8px; background: #efeae6; border-radius: 99px; overflow: hidden; margin: 20px 0 16px; }
.lt-balken { height: 100%; width: 4%; background: var(--lt-tuerkis); border-radius: 99px; transition: width .8s ease; }
#lt-lauf-text { font-weight: 700; font-size: 18px; }
#lt-lauf-unter { color: var(--lt-grau); font-size: 15px; margin-top: 6px; min-height: 1.5em; overflow-wrap: anywhere; }

/* ---------- Befund oberhalb des Editors ---------- */

#lt-befund { margin-top: 26px; }
.lt-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.lt-zahl { background: #fff; border-radius: 14px; padding: 18px 18px 16px; box-shadow: 0 8px 24px rgba(78, 64, 55, .07); }
.lt-zahl b { display: block; font-size: 32px; line-height: 1.05; font-weight: 700; }
.lt-zahl span { display: block; margin-top: 6px; font-size: 14px; color: var(--lt-grau); line-height: 1.4; }

.lt-kasten { border-radius: 16px; padding: 20px 22px; margin-bottom: 16px; background: #f7f5f3; }
.lt-kasten h3 { font-size: 19px; margin: 0 0 10px; }
.lt-kasten p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.lt-kasten p:last-child { margin-bottom: 0; }
.lt-kasten.gelb { background: var(--lt-gelb-hell); border: 1px solid var(--lt-gelb-rand); }
.lt-kasten.rot { background: var(--lt-rot-hell); border: 1px solid var(--lt-rot-rand); }
.lt-kasten.gruen { background: var(--lt-gruen-hell); border: 1px solid var(--lt-gruen-rand); }
.lt-kasten details { margin-top: 12px; }
.lt-kasten summary { cursor: pointer; font-weight: 700; color: var(--lt-tuerkis); }
.lt-kasten pre { margin-top: 10px; max-height: 320px; }
.lt-kasten .lt-knopf-zweit { margin-top: 12px; }

.lt-bots { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 4px; }
.lt-bots th, .lt-bots td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--lt-linie); vertical-align: top; }
.lt-bots th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--lt-grau); font-weight: 700; }
.lt-bots td:first-child { font-weight: 700; white-space: nowrap; }
.lt-marke { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 99px; padding: 2px 10px; white-space: nowrap; }
.lt-marke.erlaubt { background: var(--lt-gruen-hell); color: var(--lt-gruen); }
.lt-marke.gesperrt { background: var(--lt-rot-hell); color: var(--lt-rot); }
.lt-marke.teilweise { background: var(--lt-gelb-hell); color: var(--lt-gelb); }

/* ---------- Arbeitsfläche: Editor + Vorschau ---------- */

.lt-arbeitsflaeche { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px;
  align-items: start; margin-top: 34px; max-width: 1180px; margin-left: auto; margin-right: auto; }
.lt-h2 { font-size: 22px; margin: 0 0 16px; }
.lt-editor, .lt-vorschau { background: #fff; border-radius: 22px; padding: 26px 24px;
  box-shadow: 0 18px 50px rgba(78, 64, 55, .10); min-width: 0; }
.lt-vorschau { position: sticky; top: 96px; }

.lt-feld { margin-bottom: 16px; }
.lt-feld label { display: block; font-weight: 700; font-size: 15.5px; margin-bottom: 6px; }
.lt-feld .lt-klein { display: block; margin-top: 2px; }
.lt-editor input[type=text], .lt-editor input[type=url], .lt-editor textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15.5px; color: var(--lt-braun);
  padding: 10px 12px; border: 1px solid var(--lt-rand); border-radius: 10px; background: var(--lt-feld);
}
.lt-editor textarea { resize: vertical; line-height: 1.5; }
.lt-editor input:focus, .lt-editor textarea:focus { outline: 2px solid var(--lt-tuerkis); outline-offset: 0; border-color: var(--lt-tuerkis); }

.lt-gruppe { border: 1px solid var(--lt-linie); border-radius: 16px; padding: 16px 16px 12px; margin: 22px 0 14px; background: #fcfbfa; }
.lt-gruppe.optional { background: #f7f5f3; border-style: dashed; }
.lt-gruppe-kopf { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lt-gruppe-kopf .lt-hash { font-weight: 700; color: var(--lt-grau); font-size: 17px; }
.lt-gruppe-kopf input[type=text] { flex: 1 1 180px; font-weight: 700; }
.lt-mini { font: inherit; font-size: 14px; line-height: 1; background: #fff; color: var(--lt-braun);
  border: 1px solid var(--lt-rand); border-radius: 8px; padding: 8px 10px; cursor: pointer; min-width: 36px; }
.lt-mini:hover { border-color: var(--lt-tuerkis); color: var(--lt-tuerkis); }
.lt-mini:disabled { opacity: .35; cursor: default; border-color: var(--lt-rand); color: var(--lt-braun); }
.lt-mini.weg:hover { border-color: var(--lt-rot); color: var(--lt-rot); }
.lt-schalter { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; margin: 10px 0 4px; }
.lt-schalter input { width: 17px; height: 17px; accent-color: var(--lt-tuerkis); }

.lt-eintrag { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 10px;
  padding: 12px 0; border-top: 1px solid var(--lt-linie); }
.lt-eintrag:first-of-type { border-top: 0; }
.lt-eintrag > input[type=checkbox] { width: 18px; height: 18px; margin-top: 11px; accent-color: var(--lt-tuerkis); }
.lt-eintrag > .lt-mini { align-self: start; margin-top: 4px; }
.lt-eintrag-felder { display: grid; gap: 6px; min-width: 0; }
.lt-eintrag-felder input.lt-url { font-size: 13.5px !important; color: var(--lt-grau) !important; padding: 7px 10px !important; }
.lt-eintrag.aus .lt-eintrag-felder { opacity: .45; }
.lt-weitere { font-size: 14px; color: var(--lt-grau); margin: 8px 0 0; }
.lt-gruppe .lt-knopf-zweit { margin-top: 8px; font-size: 14px; padding: 8px 12px; }

.lt-knopf-zweit { font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; background: #fff;
  color: var(--lt-tuerkis); border: 1px solid var(--lt-tuerkis); border-radius: 10px; padding: 10px 16px; }
.lt-knopf-zweit:hover { background: #eef8fd; }
.lt-knopf-hell { background: #fff; color: var(--lt-tuerkis); border: 1px solid var(--lt-tuerkis); }
.lt-knopf-hell:hover { background: #eef8fd; }

.lt-vorschau-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lt-vorschau pre, .lt-kasten pre {
  background: #2f2622; color: #f3ede8; border-radius: 12px; padding: 16px 16px;
  font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; margin: 0;
}
.lt-vorschau pre { max-height: 58vh; min-height: 160px; }
.lt-vorschau pre:focus { outline: 2px solid var(--lt-tuerkis); outline-offset: 2px; }
.lt-aktionen { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.lt-aktionen .lt-knopf { font-size: 16px; padding: 12px 18px; flex: 1 1 auto; }
.lt-ablage { margin: 12px 0 0; line-height: 1.5; }

.lt-pruefung { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14.5px; line-height: 1.5; }
.lt-pruefung li { padding-left: 22px; position: relative; margin-bottom: 4px; }
.lt-pruefung li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 9px; height: 9px; border-radius: 50%; }
.lt-pruefung li.ok::before { background: var(--lt-gruen); }
.lt-pruefung li.hinweis::before { background: var(--lt-gelb); }
.lt-pruefung li.fehler::before { background: var(--lt-rot); }

.lt-nachsatz { margin-top: 26px; }
.lt-faq details { background: #fff; border-radius: 14px; padding: 16px 20px; margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(78, 64, 55, .06); }
.lt-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.lt-faq details p { margin: 10px 0 0; }

@media (max-width: 980px) {
  .lt-arbeitsflaeche { grid-template-columns: 1fr; }
  .lt-vorschau { position: static; }
}
@media (max-width: 560px) {
  .lt-form, .lt-editor, .lt-vorschau { padding: 20px 16px; border-radius: 18px; }
  .lt-form button[type=submit] { width: 100%; }
  .lt-gruppe { padding: 12px 10px 10px; }
  .lt-bots td:nth-child(3), .lt-bots th:nth-child(3) { display: none; }
  .lt-gruppe-kopf { flex-wrap: nowrap; gap: 6px; }
  .lt-gruppe-kopf .lt-hash { display: none; }
  .lt-gruppe-kopf input[type=text] { flex: 1 1 auto; min-width: 0; }
  .lt-gruppe-kopf .lt-mini { min-width: 32px; padding: 8px 8px; }
  .lt-zahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .lt-zahl { padding: 14px 10px 12px; }
  .lt-zahl b { font-size: 26px; }
  .lt-zahl span { font-size: 12.5px; }
}
