* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #080806;
  color: #f4efe6;
  font-family: Arial, Helvetica, sans-serif;
}

.build-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #080806;
}

.build-image {
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100svh;
}

.build-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.panel-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(8, 8, 6, 0.76), rgba(8, 8, 6, 0.84)),
    url("/assets/hompage_im_aufbau.png") center / cover no-repeat;
}

.panel {
  width: min(100%, 520px);
  padding: 28px;
  border: 1px solid rgba(244, 239, 230, 0.22);
  border-radius: 8px;
  background: rgba(12, 12, 10, 0.84);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.eyebrow {
  margin: 0 0 10px;
  color: #d6b98b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;
  font-size: 2rem;
  line-height: 1.1;
}

p {
  margin: 0 0 18px;
  color: #e3d9ca;
  font-size: 1rem;
  line-height: 1.55;
}

.text-link {
  color: #f2d297;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.admin-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.admin-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-topline h1 {
  margin-bottom: 0;
}

.admin-panel {
  margin: 0;
}

.admin-panel h2,
.service-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.plain-list {
  margin: 0 0 18px;
  padding-left: 20px;
  color: #e3d9ca;
  line-height: 1.6;
}

code {
  color: #f2d297;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

.button-link,
button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 210, 151, 0.48);
  border-radius: 6px;
  background: #f2d297;
  color: #17130d;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 9px 14px;
  text-decoration: none;
}

button:hover,
.button-link:hover {
  background: #f7dfaf;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.link-button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: #f2d297;
  padding: 0;
}

.link-button:hover {
  background: transparent;
  text-decoration: underline;
}

.notice {
  margin: 0 0 18px;
  border: 1px solid rgba(242, 210, 151, 0.36);
  border-radius: 6px;
  background: rgba(242, 210, 151, 0.1);
  color: #f4efe6;
  padding: 12px 14px;
}

.notice.error {
  border-color: rgba(229, 96, 96, 0.42);
  background: rgba(229, 96, 96, 0.12);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  border: 1px solid rgba(244, 239, 230, 0.18);
  border-radius: 8px;
  background: rgba(14, 14, 12, 0.92);
  padding: 18px;
}

.service-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.status-badge {
  border: 1px solid rgba(244, 239, 230, 0.18);
  border-radius: 999px;
  color: #f4efe6;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 9px;
}

.status-badge.is-online {
  border-color: rgba(112, 201, 138, 0.52);
  background: rgba(112, 201, 138, 0.14);
  color: #aef0c1;
}

.status-badge.is-offline {
  border-color: rgba(229, 96, 96, 0.42);
  background: rgba(229, 96, 96, 0.12);
  color: #f1a7a7;
}

.metric-list {
  display: grid;
  gap: 9px;
  margin: 18px 0;
}

.metric-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.metric-list dt {
  color: #bfb3a4;
}

.metric-list dd {
  margin: 0;
  color: #f4efe6;
  font-weight: 700;
  text-align: right;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 760px) {
  .panel-page {
    background-image:
      linear-gradient(rgba(8, 8, 6, 0.72), rgba(8, 8, 6, 0.86)),
      url("/assets/hompage_im_aufbau_mobile.png");
  }

  .panel {
    padding: 22px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .admin-page {
    padding: 24px 16px 36px;
  }

  .admin-topline {
    display: grid;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .action-row {
    grid-template-columns: 1fr;
  }
}
