:root {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: #1b322e;
  background: #f4f7f5;
  font-synthesis: none;
  --ink: #19332e;
  --muted: #5a6c65;
  --line: #dce5df;
  --green: #08774b;
  --surface: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #076d43;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
input,
select,
textarea {
  background: #fff;
  color: var(--ink);
  border: 1px solid #bdccc2;
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
}
button,
.button {
  background: #096847;
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 0.68rem 1rem;
  font-weight: 650;
}
button:hover,
.button:hover {
  filter: brightness(0.92);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
:focus-visible {
  outline: 3px solid #8a42af;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.topbar {
  border-top: 3px solid #72ad28;
  background: white;
  border-bottom: 1px solid var(--line);
}
.bar-content,
.wrap,
footer {
  max-width: 1320px;
  margin: auto;
  padding-inline: clamp(18px, 4vw, 65px);
}
.bar-content {
  display: flex;
  align-items: center;
  min-height: 71px;
  gap: clamp(18px, 4vw, 64px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 730;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.brand-mark {
  position: relative;
  display: inline-block;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: #097147;
}
.brand-mark:after {
  content: "";
  position: absolute;
  inset: 7px 4px;
  background: #effbd9;
  clip-path: polygon(
    0 51%,
    24% 51%,
    39% 10%,
    55% 72%,
    67% 36%,
    79% 52%,
    100% 52%,
    100% 62%,
    74% 62%,
    69% 56%,
    53% 97%,
    38% 39%,
    29% 61%,
    0 61%
  );
}
nav {
  display: flex;
  gap: 25px;
}
nav a,
.admin-link {
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 570;
  color: #496158;
}
nav a:hover,
.admin-link:hover {
  color: var(--green);
  text-decoration: underline;
}
.admin-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.lock {
  display: inline-block;
  position: relative;
  width: 11px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  margin-top: 4px;
}
.lock:before {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 1px;
  width: 5px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-radius: 5px 5px 0 0;
}
.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 10;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
.wrap {
  padding-top: 32px;
}
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(112deg, #103b35 12%, #154e40 65%, #236146);
  color: #fff;
  padding: 31px clamp(23px, 3.2vw, 46px) 30px;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.eyebrow {
  margin: 0 0 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 650;
  font-size: 0.7rem;
  color: #c5e9b6;
  display: flex;
  align-items: center;
  gap: 8px;
}
.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: #a6dc6a;
}
.hero h1 {
  font-size: clamp(2.6rem, 4.4vw, 4.05rem);
  letter-spacing: -0.062em;
  line-height: 1.06;
  margin: 0;
  font-weight: 640;
}
.hero-description {
  margin: 12px 0 22px;
  color: #e0eee6;
  font-size: 1rem;
}
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 17px;
  color: #cce1d4;
  font-size: 0.78rem;
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-meta span + span {
  border-left: 1px solid #719784;
  padding-left: 17px;
}
.clock {
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.clock:after {
  content: "";
  position: absolute;
  width: 3px;
  height: 4px;
  top: 2px;
  left: 5px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.radar {
  position: absolute;
  z-index: -1;
  height: 440px;
  width: 440px;
  right: -28px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle,
      transparent 0 33px,
      #d2f5a42d 34px,
      transparent 35px
    ),
    conic-gradient(
      from 7deg,
      transparent 0deg,
      #bae98518 51deg,
      transparent 52deg 360deg
    );
}
.radar:before,
.radar:after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px dashed #c0edaf42;
}
.radar:after {
  transform: rotate(90deg);
}
.radar i,
.radar b {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #c1ea93;
  border-radius: 50%;
  box-shadow: 0 0 0 6px #c1ea9326;
  top: 38%;
  left: 61%;
}
.radar b {
  width: 6px;
  height: 6px;
  top: 66%;
  left: 52%;
  opacity: 0.7;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 28px;
}
.metrics article,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.metrics article {
  min-width: 0;
  padding: 17px 18px;
}
.metric-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #455b52;
  font-weight: 610;
  font-size: 0.85rem;
}
.metric-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  width: 26px;
  height: 26px;
  background: #e8f2e7;
  color: #37693e;
  font-style: normal;
  font-size: 17px;
  font-weight: 600;
}
.ok-icon {
  background: #e6f5e7;
  color: #187342;
}
.fault-icon {
  background: #fff0de;
  color: #9d5a18;
}
.check-icon {
  background: #ede9f5;
  color: #6e4f91;
}
.metrics article > div + div {
  margin-top: 11px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.metrics strong {
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.065em;
  font-weight: 640;
}
.metrics article span {
  font-size: 0.74rem;
  color: var(--muted);
}
.panel {
  margin-bottom: 24px;
  overflow: hidden;
  scroll-margin: 15px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 23px 24px;
}
.panel h2 {
  font-size: 1.43rem;
  line-height: 1.2;
  letter-spacing: -0.045em;
  margin: 0;
  font-weight: 680;
}
.panel-head p,
.panel-foot,
.empty {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 5px 0 0;
  line-height: 1.55;
}
.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.controls input,
.controls select {
  font-size: 0.83rem;
  height: 38px;
}
.search {
  position: relative;
}
.search i {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid #677b70;
  border-radius: 50%;
  top: 11px;
  left: 12px;
}
.search i:after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.5px;
  background: #677b70;
  transform: rotate(48deg);
  top: 10px;
  left: 8px;
}
.search input {
  padding-left: 33px;
  max-width: 170px;
}
.service-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1.55fr) minmax(120px, 1fr) minmax(
      90px,
      1fr
    ) minmax(90px, 0.74fr) minmax(110px, 0.9fr) 12px;
  align-items: center;
  gap: 14px;
  padding-inline: 24px;
}
.service-head {
  background: #f4f8f5;
  border-block: 1px solid var(--line);
  min-height: 39px;
  font-size: 0.73rem;
  font-weight: 650;
  color: #4c6157;
}
.service-row {
  border-bottom: 1px solid #e5ece7;
}
.service-row summary {
  padding-block: 13px;
  list-style: none;
  min-height: 63px;
}
.service-row summary::-webkit-details-marker {
  display: none;
}
.service-row summary:hover {
  background: #f7faf7;
}
.service-row[open] summary {
  background: #f4f8f4;
}
.service-title {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.25;
}
.version {
  display: block;
  color: var(--muted);
  font:
    normal 0.69rem/1.4 "Segoe UI",
    sans-serif;
  margin-top: 4px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.3;
  color: #43574e;
  background: #edf1ef;
  padding: 4px 8px;
  border-radius: 20px;
  width: max-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.tag:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  background: currentColor;
}
.s-up {
  color: #196538;
  background: #e1f2e3;
}
.s-down {
  color: #9d3337;
  background: #fae4e3;
}
.s-partial,
.s-limited {
  color: #895206;
  background: #fff0d4;
}
.s-auth,
.s-config,
.s-request {
  color: #70538d;
  background: #f1eaf8;
}
.heat {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 2px;
}
.heat i {
  height: 16px;
  border-radius: 2px;
  background: #dfe7e1;
}
.heat .s-up {
  background: #68ac6e;
}
.heat .s-partial {
  background: #dfa546;
}
.heat .s-down {
  background: #cb6865;
}
.value {
  font-size: 0.81rem;
  font-variant-numeric: tabular-nums;
}
.chevron {
  border-right: 1.5px solid #63766b;
  border-bottom: 1.5px solid #63766b;
  transform: rotate(-45deg);
  width: 7px;
  height: 7px;
  justify-self: center;
}
.service-row[open] .chevron {
  transform: rotate(45deg);
}
.panel-foot,
.empty {
  padding: 14px 24px;
  margin: 0;
}
.empty {
  border-top: 1px solid var(--line);
}
.endpoints {
  padding: 12px 24px 16px;
  background: #f8faf8;
}
.endpoints h3 {
  font-size: 0.8rem;
  margin: 3px 0 10px;
  color: #486053;
}
.endpoint,
.event {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 0.79rem;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.endpoint code,
.event code {
  font:
    0.76rem/1.4 "Cascadia Code",
    Consolas,
    monospace;
  overflow-wrap: anywhere;
}
.endpoint small {
  color: var(--muted);
}
.method {
  font-weight: 700;
  font-size: 0.68rem;
  color: #365c49;
}
.event {
  padding: 13px 24px;
}
.event time {
  font-size: 0.74rem;
  color: var(--muted);
}
.event strong {
  font-size: 0.85rem;
}
.event-flow {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 4px 28px;
  color: var(--muted);
  font-size: 0.72rem;
}
footer .brand {
  font-size: 0.85rem;
}
footer .brand-mark {
  width: 23px;
  height: 23px;
  border-radius: 7px;
}
footer .brand-mark:after {
  inset: 4px 2px;
}
#load-error {
  padding: 12px 18px;
  border-radius: 9px;
  background: #fff1d9;
  color: #684c1c;
  margin-bottom: 16px;
}
#retry {
  margin-left: 12px;
  font-size: 0.8rem;
}
body:not(.dashboard) main {
  max-width: 1150px;
  margin: auto;
  padding: 24px;
}
body:not(.dashboard) input:not([type="checkbox"]),
body:not(.dashboard) textarea {
  max-width: 100%;
}
body:not(.dashboard) form label {
  display: block;
  margin: 8px 0;
  font-size: 0.9rem;
}
body:not(.dashboard) h1,
body:not(.dashboard) h2 {
  letter-spacing: -0.035em;
}
@media (max-width: 980px) {
  .service-grid {
    gap: 9px;
    padding-inline: 16px;
    grid-template-columns: minmax(124px, 1.25fr) minmax(98px, 1fr) minmax(
        68px,
        0.85fr
      ) minmax(74px, 0.7fr) minmax(82px, 0.75fr) 10px;
  }
  .metrics {
    gap: 9px;
  }
  .metrics article {
    padding: 13px;
  }
  .radar {
    right: -120px;
  }
  .heat {
    gap: 1px;
  }
}
@media (max-width: 740px) {
  .bar-content {
    min-height: 61px;
    gap: 12px;
  }
  .topbar nav {
    display: none;
  }
  .wrap {
    padding-top: 18px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    margin: 13px 0 18px;
  }
  .radar {
    opacity: 0.42;
    right: -220px;
  }
  .hero {
    padding: 24px;
  }
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }
  .service-head {
    display: none;
  }
  .service-row {
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }
  .service-row summary {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 10px;
    grid-template-areas: "name status arrow" "heat avail avail" "outage outage outage";
    gap: 8px 10px;
    padding: 14px 18px;
  }
  .service-title {
    grid-area: name;
  }
  .service-row summary > .tag {
    grid-area: status;
    justify-self: end;
  }
  .heat {
    grid-area: heat;
  }
  .heat i {
    height: 10px;
  }
  .availability {
    grid-area: avail;
  }
  .availability:before {
    content: "Verfügbarkeit: ";
  }
  .outage {
    grid-area: outage;
  }
  .outage:before {
    content: "Letzter Ausfall: ";
  }
  .outage,
  .availability {
    font-size: 0.72rem;
    color: var(--muted);
  }
  .chevron {
    grid-area: arrow;
  }
  .event-flow {
    margin-left: 0;
  }
  .endpoints {
    padding-inline: 18px;
  }
  .hero-meta {
    gap: 5px 10px;
  }
  .hero-meta span + span {
    padding-left: 10px;
  }
  .admin-link {
    font-size: 0.78rem;
  }
  .panel-foot {
    border-top: 1px solid var(--line);
  }
  footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 400px) {
  .metrics article > div + div {
    display: block;
  }
  .metrics article span {
    display: block;
    margin-top: 4px;
  }
  .hero-meta {
    display: grid;
  }
  .hero-meta span + span {
    border: 0;
    padding: 0;
  }
  .controls {
    display: grid;
    width: 100%;
  }
  .controls input,
  .controls select {
    max-width: 100%;
    width: 100%;
  }
  .tag {
    font-size: 0.67rem;
  }
}
