/* Hausfarben ITK Systemhaus – dieselben wie in VertriebNG (--blau, --gold) und auf
   itksystemhaus.de (Knöpfe Gold mit dunkler Schrift). */
:root {
  --grund: #f5f7fa; --karte: #fff; --text: #2b2d30; --leise: #5f6368; --linie: #d0d7de;
  --grau: #54565a; --gold: #f2a900; --gold-dunkel: #d99a00; --knopftext: #333333;
  --marke: var(--grau);
  --gut: #1a7f37; --warn: #8a5a00; --fehler: #b42318;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
header { background: #fff; border-bottom: 4px solid var(--gold); }
.kopf { max-width: 1000px; margin: 0 auto; padding: .7rem 16px; display: flex;
  gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: .7rem; color: var(--grau); text-decoration: none; }
.marke img { height: 46px; width: auto; display: block; }
.marke span { font-size: 1.05rem; font-weight: 600; color: var(--grau); border-left: 2px solid var(--gold); padding-left: .7rem; }
.wer { display: flex; gap: .6rem; align-items: center; color: var(--leise); font-size: .9rem; flex-wrap: wrap; }
.wer form { margin: 0; }
main { max-width: 1000px; margin: 0 auto; padding: 1rem 16px 2rem; }
footer { max-width: 1000px; margin: 0 auto; padding: 1rem 16px 2rem; color: var(--leise); font-size: .85rem; }
footer a, main a { color: var(--marke); }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 8px;
  padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.schmal { max-width: 460px; margin-left: auto; margin-right: auto; }
h1 { font-size: 1.35rem; margin: 0 0 .8rem; } h2 { font-size: 1.1rem; margin: 1.2rem 0 .5rem; }
label { display: block; margin: .7rem 0; font-weight: 600; font-size: .95rem; }
input { display: block; width: 100%; margin-top: .25rem; padding: .6rem .7rem; font: inherit;
  border: 1px solid #b8bec6; border-radius: 6px; }
textarea { display: block; width: 100%; margin-top: .25rem; padding: .6rem .7rem; font: inherit;
  border: 1px solid #b8bec6; border-radius: 6px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.titelzeile { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: .6rem; }
.titelzeile h1 { margin: 0; }
.knopf { display: inline-block; padding: .5rem 1rem; font-weight: 700; color: var(--knopftext) !important; background: var(--gold);
  border-radius: 6px; text-decoration: none; }
.anliegen { background: #eef6ff; border: 1px solid #b6d4fe; border-radius: 6px; padding: .6rem .8rem .6rem 1.8rem; }
.kommentar { background: #fafbfc; border-left: 3px solid var(--linie); padding-left: .7rem; }
.kommentar.von-uns { border-left-color: var(--gold); }
.knopf:hover, button:not(.leise):hover { background: var(--gold-dunkel); }
button { margin-top: .6rem; padding: .6rem 1.2rem; font: inherit; font-weight: 700; color: var(--knopftext);
  background: var(--gold); border: 0; border-radius: 6px; cursor: pointer; }
button.leise { margin: 0; padding: .3rem .8rem; background: #fff; color: var(--leise); border: 1px solid var(--linie); }
.klein { font-size: .85rem; color: var(--leise); }
.hinweis { background: #eef6ff; border: 1px solid #b6d4fe; padding: .6rem .8rem; border-radius: 6px; }
.fehler { background: #fef3f2; border: 1px solid #fecdca; color: var(--fehler); padding: .6rem .8rem; border-radius: 6px; }
.tabelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .5rem .5rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--leise); }
.eckdaten { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: 0 0 1rem; }
.eckdaten dt { color: var(--leise); } .eckdaten dd { margin: 0; }
.text { white-space: normal; overflow-wrap: anywhere; }
.eintrag { border-top: 1px solid var(--linie); padding: .8rem 0; }
.eintrag:first-of-type { border-top: 0; }
.eintrag-kopf { display: flex; gap: .5rem; flex-wrap: wrap; align-items: baseline; margin-bottom: .3rem; }
.marke-ja, .marke-nein { margin-left: auto; font-size: .78rem; padding: .1rem .5rem; border-radius: 999px; }
.marke-ja { background: #dafbe1; color: var(--gut); } .marke-nein { background: #fff8c5; color: var(--warn); }
.qr { display: block; width: 200px; height: 200px; margin: .5rem 0; image-rendering: pixelated; }
.schluessel { font-family: ui-monospace, Consolas, monospace; font-size: 1rem; letter-spacing: .05em;
  background: var(--grund); padding: .5rem .7rem; border-radius: 6px; overflow-wrap: anywhere; }
td:last-child { white-space: nowrap; }
@media (max-width: 600px) {
  th:nth-child(3), td:nth-child(3), th:nth-child(4), td:nth-child(4) { display: none; }
  table { font-size: .9rem; } th, td { padding: .45rem .3rem; }
  .eckdaten { grid-template-columns: 1fr; } .eckdaten dd { margin-bottom: .4rem; }
}
.leise-link { color: var(--leise); text-decoration: none; font-size: .9rem; }
.leise-link:hover { text-decoration: underline; }
input[type=file] { padding: .4rem; background: #fff; }
.anhang-liste { margin: -.3rem 0 .6rem 1.2rem; padding: 0; }
.anhang-liste .zu-viel { color: var(--fehler); }
.anhaenge-gezeigt { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.anhaenge-gezeigt a { color: var(--grau); }
label.haken { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; }
label.haken input { width: auto; margin-top: .3rem; }
.menue { display: flex; gap: .2rem; flex-wrap: wrap; }
.menue a { color: var(--grau); text-decoration: none; font-weight: 600; padding: .3rem .6rem; border-radius: 6px; }
.menue a:hover { background: var(--grund); }
select { display: block; width: 100%; margin-top: .25rem; padding: .55rem .6rem; font: inherit; border: 1px solid #b8bec6; border-radius: 6px; background: #fff; }
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1rem; }
form.inline { display: inline; }
td.aktionen { white-space: nowrap; text-align: right; }
td.nowrap, .nowrap { white-space: nowrap; }
tr.inaktiv td { color: var(--leise); }
tr.gescheitert td { color: var(--fehler); }
details summary { cursor: pointer; color: var(--grau); font-weight: 600; margin: .4rem 0; }
fieldset.geraete-wahl { border: 1px solid var(--linie); border-radius: 6px; padding: .4rem .8rem; margin: .6rem 0; max-height: 16rem; overflow-y: auto; }
fieldset.geraete-wahl label.haken { font-weight: normal; margin: .3rem 0; }
fieldset.geraete-wahl { padding-top: 0; }
fieldset.geraete-wahl input.geraete-suche { position: sticky; top: 0; z-index: 1; width: 100%; box-sizing: border-box; margin: .4rem 0; background: var(--karte); }
fieldset.geraete-wahl .geraete-treffer { margin: 0 0 .3rem; }
fieldset.geraete-wahl label.haken[hidden] { display: none; }
.geraete-filter > input.geraete-suche { width: 100%; box-sizing: border-box; margin: .2rem 0 .4rem; }
.geraete-filter .geraete-treffer { margin: 0 0 .4rem; }
.geraete-filter tr[hidden] { display: none; }
.bild-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 22, 25, .82);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1rem 1rem; cursor: zoom-out; }
.bild-overlay img { max-width: 100%; max-height: calc(100vh - 6rem); object-fit: contain; background: #fff;
  border-radius: 4px; box-shadow: 0 6px 30px rgba(0,0,0,.45); cursor: default; }
.bild-overlay .bild-zu { position: absolute; top: .7rem; right: .9rem; margin: 0; width: 2.6rem; height: 2.6rem; padding: 0;
  border-radius: 50%; background: #fff; color: var(--grau); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.bild-overlay .bild-titel { color: #eee; font-size: .9rem; margin-top: .6rem; cursor: default; }
.bild-overlay .bild-titel a { color: var(--gold); }
.bild-overlay .bild-vor, .bild-overlay .bild-nach { position: absolute; top: 50%; transform: translateY(-50%); margin: 0;
  width: 3rem; height: 3rem; padding: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--grau);
  font-size: 1.8rem; line-height: 1; cursor: pointer; }
.bild-overlay .bild-vor { left: .9rem; }
.bild-overlay .bild-nach { right: .9rem; }
@media (max-width: 600px) { .bild-overlay .bild-vor, .bild-overlay .bild-nach { top: auto; bottom: 1rem; transform: none; } }
body.overlay-offen { overflow: hidden; }
/* Fragerunden */
.fragen fieldset.frage { margin: 0 0 1rem; }
.fragen fieldset.frage legend { font-weight: 700; color: var(--grau); padding: 0 .3rem; }
.fragen .pflicht { color: #b42318; }
.fragen .wahl { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: .5rem 0; }
.fragen label.haken { font-weight: normal; display: inline-flex; align-items: center; gap: .35rem; margin: 0; }
.fragen .anhaenge-zeigen { list-style: none; padding: 0; margin: .3rem 0 .6rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.fragen .anhaenge-zeigen li { display: flex; flex-direction: column; gap: .2rem; max-width: 220px; }
.fragen img.vorschau { max-width: 220px; max-height: 160px; object-fit: contain; border: 1px solid var(--linie); border-radius: 4px; background: #fff; }
.fragen .knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
button.zweit { background: #fff; color: var(--grau); border: 1px solid var(--grau); }
button.zweit:hover { background: #f3f3f3 !important; }
.hinweis.erfolg { background: #ecfdf3; border-color: #abefc6; }
.vorschub { white-space: pre-wrap; }
