/* RelioMedia-Farben von reliomedia.de. Der interne Bereich ist hell; Browser sollen ihn nicht dunkel umfärben. */
:root {
  color-scheme: only light;
  --blau: #0369a1; --blau-hover: #075985; --himmel: #0ea5e9; --hellblau: #e0f2fe; --gruen: #10b981;
  --tinte: #0f172a; --grau: #475569; --linie: #e2e8f0; --grund: #f5f9fd; --weiss: #fff;
  --rot: #dc2626; --orange: #ea580c; --amber: #d97706;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--tinte);
  font: 15px/1.5 Inter, "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--blau); }
h1 { font-size: 1.6rem; margin: 0 0 .3rem; }
h2 { font-size: 1.25rem; margin: 0 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
.inline { display: inline; margin: 0; }
.leise { color: var(--grau); }
.klein { font-size: .85rem; }
.warn { color: var(--rot); }
.gut { color: var(--gruen); }
.pflicht, .optional { font-size: .75rem; color: var(--grau); font-weight: normal; margin-left: .3rem; }

.kopf { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem;
  padding: .7rem 1.4rem; background: var(--weiss); border-bottom: 3px solid var(--himmel); }
.marke { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--tinte); font-weight: 600; }
.marke-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.marke-name span { color: var(--himmel); }
.marke-tool { color: var(--grau); font-weight: 500; border-left: 1px solid var(--linie); padding-left: .6rem; margin-left: .15rem; }
.kopf nav .zahl { display: inline-block; min-width: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: var(--rot);
  color: var(--weiss); font-size: .75rem; font-weight: 700; text-align: center; }
.kopf nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
.kosten-pill { background: var(--hellblau); color: var(--blau); padding: .25rem .7rem; border-radius: 999px; }
.kosten-pill.warn { background: #fee2e2; color: var(--rot); }
.wer { color: var(--grau); }

main { max-width: 1180px; margin: 1.4rem auto; padding: 0 1rem; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 1.3rem 1.5rem;
  margin-bottom: 1.2rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.karte.schmal { max-width: 420px; margin: 3rem auto; }
.kopfkarte { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; }
.kopfkarte .rechts { text-align: right; }
.schritte { grid-column: 1 / -1; display: flex; gap: .5rem; list-style: none; padding: 0; margin: .6rem 0 0; flex-wrap: wrap; }
.schritte li { padding: .2rem .2rem; background: none; color: var(--grau); font-size: .85rem; border-bottom: 3px solid #e2e8f0;
  cursor: default; user-select: none; border-radius: 0; }
.schritte li.fertig { color: #065f46; border-bottom-color: var(--gruen); }
.schritte li.aktiv { color: var(--blau); border-bottom-color: var(--blau); font-weight: 700; }
.schritte li + li::before { content: "›"; margin-right: .6rem; color: #94a3b8; }

form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .7rem; }
form label.inline { display: inline-flex; align-items: center; gap: .3rem; font-weight: normal; margin-right: 1rem; }
input, select, textarea { width: 100%; font: inherit; padding: .5rem .6rem; border: 1px solid #cbd5e1; border-radius: 8px;
  background: var(--weiss); color: var(--tinte); margin-top: .25rem; }
input[type=checkbox], input[type=radio] { width: auto; margin: 0; }
input[type=date], input[type=time] { width: auto; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--himmel); border-color: var(--himmel); }
fieldset { border: 1px solid var(--linie); border-radius: 8px; padding: .6rem .8rem; margin: 0 0 .7rem; }
legend { font-weight: 600; font-size: .9rem; padding: 0 .3rem; }
.raster { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.raster .breit { grid-column: 1 / -1; }
.zeile { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.aktionen { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.2rem 0 .8rem; }

.knopf { display: inline-block; background: var(--blau); color: var(--weiss); border: 0; border-radius: 8px;
  padding: .6rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.knopf:hover { background: var(--blau-hover); }
.knopf.hell { background: var(--hellblau); color: var(--blau); }
.knopf.klein { padding: .3rem .7rem; font-size: .85rem; }
.knopf:disabled { background: #94a3b8; cursor: not-allowed; }

.hinweis { padding: .7rem 1rem; border-radius: 8px; margin: 0 0 1rem; }
.hinweis.fehler { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.hinweis.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.hinweisbox { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: .5rem .8rem; margin-bottom: 1rem; }

.status { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: #f1f5f9; color: var(--grau); }
.s-ausgewertet { background: #d1fae5; color: #065f46; }
.s-faktenblatt_bereit { background: var(--hellblau); color: var(--blau); }
.s-fehler, .s-abgebrochen { background: #fee2e2; color: var(--rot); }

.balken { height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin: .6rem 0; }
.balken div { height: 100%; background: var(--himmel); transition: width .5s; }
.balken.laufend div { width: 30%; animation: laufen 1.4s ease-in-out infinite; }
@keyframes laufen { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }

.liste { width: 100%; border-collapse: collapse; }
.liste th, .liste td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--linie); font-size: .9rem; }

.fakt { border: 1px solid var(--linie); border-radius: 10px; padding: .7rem .9rem; margin-bottom: .6rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.fakt .zitat textarea { font-style: italic; color: var(--grau); }
.fakt-fuss { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; }
.fakt-fuss .url { flex: 1; margin: 0; }
.fakt-fuss .loeschen { display: inline-flex; gap: .3rem; align-items: center; font-weight: normal; margin: 0; color: var(--rot); }
.fakt p { grid-column: 1 / -1; margin: .3rem 0 0; }
.fakt .notiz { grid-column: 1 / -1; font-weight: normal; font-size: .85rem; color: var(--grau); margin: .4rem 0 0; }
.fakt .notiz input { background: #fffbeb; }
details.neu, details.neu-lesen { margin: .3rem 0 .8rem; }
details summary { cursor: pointer; }
details.neu summary { color: var(--blau); font-size: .9rem; }

.gruppe { margin-bottom: .8rem; }
.befunde { width: 100%; border-collapse: collapse; margin-top: .4rem; }
.befunde th { text-align: left; font-size: .8rem; color: var(--grau); border-bottom: 2px solid var(--linie); padding: .4rem; }
.befunde td { vertical-align: top; padding: .55rem .4rem; border-bottom: 1px solid var(--linie); font-size: .9rem; }
.befunde td:first-child { width: 2.5rem; text-align: center; }
.befunde td:nth-child(2) { width: 9rem; }
.befunde td:nth-child(3) { width: 18%; }
.befunde td:nth-child(5) { width: 24%; }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--weiss); }
.b-falsch { background: var(--rot); } .b-veraltet { background: var(--orange); }
.b-nicht_genannt, .b-unbekannt_wettbewerb, .b-unbekannt { background: var(--amber); }
.b-unklar { background: #64748b; } .b-korrekt, .b-genannt { background: var(--gruen); }
pre.antwort { white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--linie); border-radius: 8px; padding: .6rem;
  max-height: 320px; overflow: auto; font: .85rem/1.45 inherit; }
.intern { margin-top: 1.2rem; background: #fffbeb; border: 1px dashed #f59e0b; border-radius: 10px; padding: .8rem; }

.entwurf { border: 1px solid var(--linie); border-radius: 10px; padding: .7rem .9rem; margin-bottom: .8rem; }
.entwurf-kopf { display: flex; justify-content: space-between; }
.entwurf-fuss { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; flex-wrap: wrap; }

.quellen, .befunde td, pre.antwort { overflow-wrap: anywhere; }
#entwuerfe.veraltet textarea { opacity: .55; }
.knopf:disabled.kopieren { background: #cbd5e1; }

@media (max-width: 760px) {
  .raster, .fakt, .kopfkarte { grid-template-columns: 1fr; }
  .kopfkarte .rechts { text-align: left; }
  .befunde thead { display: none; }
  .befunde td { display: block; width: auto !important; border: 0; padding: .2rem 0; text-align: left !important; }
  .befunde td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700;
    color: var(--grau); text-transform: uppercase; letter-spacing: .03em; }
  .befunde td[data-label="Freigeben"] { display: flex; gap: .5rem; align-items: center; }
  .befunde td[data-label="Freigeben"]::before { display: inline; }
  .befunde tr { display: block; border-bottom: 1px solid var(--linie); padding: .5rem 0; }
  .liste thead { display: none; }
  .liste tr { display: block; padding: .5rem 0; border-bottom: 1px solid var(--linie); }
  .liste td { display: block; border: 0; padding: .1rem 0; }
  .liste td.leise { display: none; }
  .kopf nav { gap: .5rem; }
}

/* Website-Beleg-Auswahl bei den Entwürfen */
.belege .beleg { display: block; margin: .2rem 0 .4rem; }
.belege .beleg select { width: 100%; }

/* Hilfe-Seite (Anleitung) */
.hilfe h1 { margin-top: 0; }
.hilfe h2 { margin-top: 1.6rem; border-top: 1px solid var(--linie); padding-top: 1rem; }
.hilfe table { border-collapse: collapse; width: 100%; margin: .6rem 0; font-size: .92rem; }
.hilfe th, .hilfe td { border: 1px solid var(--linie); padding: .4rem .5rem; text-align: left; vertical-align: top; }
.hilfe code { background: #f1f5f9; padding: 0 .25rem; border-radius: 4px; }
.hilfe li { margin: .2rem 0; }
@media (max-width: 640px) { .hilfe table { display: block; overflow-x: auto; } }

.liste td.kosten { color: var(--grau); white-space: nowrap; }
pre.technik { white-space: pre-wrap; word-break: break-word; font-size: .8rem; background: #f8fafc; padding: .5rem; border-radius: 6px; }

/* Faktenblatt kompakt: eine Zeile pro Angabe, Beleg und Notiz zum Aufklappen */
.pruefliste { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: .6rem .9rem; margin: .6rem 0 1rem; }
.pruefliste ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.fakt-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .15rem .8rem; align-items: start;
  padding: .3rem 0; border-bottom: 1px solid var(--linie); }
.fakt-zeile textarea.aussage { margin: 0; resize: none; overflow: hidden; min-height: 2.3rem; line-height: 1.4; }
.fakt-zeile > a { margin-top: .55rem; }
.fakt-zeile .loeschen { display: inline-flex; gap: .25rem; align-items: center; font-weight: normal; color: var(--rot);
  margin: .5rem 0 0; }
.fakt-zeile .notiz-text, .fakt-zeile > .warn, .fakt-zeile details.beleg { grid-column: 1 / -1; margin: 0; }
.fakt-zeile .notiz-text { background: #fffbeb; border-radius: 6px; padding: .2rem .5rem; color: #92400e; }
.fakt-zeile.markiert textarea.aussage { border-color: var(--amber); }
.fakt-zeile details.beleg summary { margin: .1rem 0; }
.fakt-zeile details.beleg label { font-weight: normal; margin: .3rem 0; }
details.weitere > summary { color: var(--blau); font-size: .9rem; margin: .5rem 0; }

/* Anfragen von der Website */
.titelzeile { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.status.a-neu { background: #fee2e2; color: var(--rot); }
.status.a-in_arbeit { background: var(--hellblau); color: var(--blau); }
.status.a-erledigt { background: #d1fae5; color: #065f46; }
.knopf.rot { background: var(--rot); }
.knopf.rot:hover { background: #b91c1c; }
#vorlage { font: .9rem/1.5 inherit; }
@media (max-width: 760px) { .marke-tool { display: none; } }
