/* Farben wie im Login-Theme fwmar (keycloak/themes/fwmar) */
:root {
  --rot: #d00000;
  --rot-dunkel: #a30000;
  --text: #1f2937;
  --grau: #6b7280;
  --linie: #e0e0e0;
  --grund: #f7f7f8;
  --ok: #166534;
  --ok-grund: #f0fdf4;
  --fehler: #991b1b;
  --fehler-grund: #fef2f2;
  --info-grund: #f3f4f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--grund);
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-top: 4px solid var(--rot);
  border-bottom: 1px solid var(--linie);
}

h1 { margin: 0; font-size: 1.5rem; }
h2 { margin: 0 0 .75rem; font-size: 1.1rem; }
.sub, .hint { margin: 0; color: var(--grau); }
.hint { margin-bottom: .75rem; font-size: .9rem; }

.versions {
  display: grid;
  grid-template-columns: auto auto;
  gap: .1rem .75rem;
  margin: 0;
  font-size: .85rem;
}
.versions dt { color: var(--grau); }
.versions dd { margin: 0; font-family: ui-monospace, monospace; }

main {
  max-width: 900px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  display: grid;
  gap: 1rem;
}

section {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: 1.25rem;
}

.section-head { display: flex; justify-content: space-between; align-items: center; }
.buttons { display: flex; gap: .5rem; flex-wrap: wrap; }

button {
  font: inherit;
  padding: .45rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--rot);
  background: var(--rot);
  color: #fff;
  cursor: pointer;
}
button:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }
button.secondary { background: #fff; color: var(--rot); }
button.secondary:hover { background: var(--fehler-grund); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.checks li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: .5rem;
  padding: .5rem .75rem;
  border-radius: 6px;
  background: var(--info-grund);
}
.checks li.ok { background: var(--ok-grund); }
.checks li.fehler { background: var(--fehler-grund); }
.checks .icon { font-weight: 700; text-align: center; }
.checks li.ok .icon { color: var(--ok); }
.checks li.fehler .icon { color: var(--fehler); }
.checks .detail { display: block; color: var(--grau); font-size: .85rem; word-break: break-word; }

form { display: flex; gap: .5rem; margin-bottom: .75rem; }
input {
  flex: 1;
  font: inherit;
  padding: .45rem .75rem;
  border: 1px solid var(--linie);
  border-radius: 6px;
}
input:focus { outline: 2px solid var(--rot); outline-offset: -1px; }

.eintraege { margin: 0; padding-left: 1.25rem; }
.eintraege time { color: var(--grau); font-size: .85rem; margin-left: .5rem; }

pre {
  margin: .5rem 0 0;
  padding: .75rem;
  background: var(--grund);
  border-radius: 6px;
  overflow-x: auto;
  font-size: .8rem;
}
details + details { margin-top: .5rem; }
summary { cursor: pointer; }
