:root {
  --bg: #f3f6fb;
  --ink: #10243f;
  --muted: #5f718a;
  --card: #ffffff;
  --ok: #138f57;
  --warn: #d09309;
  --outage: #c13a2d;
  --ring: rgba(12, 34, 64, 0.1);
}

* {
  box-sizing: border-box;
}

.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;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background-image:
    linear-gradient(180deg, #f8fbff 0%, #eef3fa 100%),
    radial-gradient(120% 80% at 5% 0%, #cfe3ff 0%, transparent 60%),
    radial-gradient(100% 70% at 95% 10%, #d8f7ea 0%, transparent 62%);
  background-repeat: no-repeat;
  background-color: var(--bg);
}

.page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.hero {
  position: relative;
  background: linear-gradient(130deg, #ffffff 0%, #eaf3ff 100%);
  border: 1px solid var(--ring);
  border-radius: 16px;
  padding: 1.25rem 13.2rem 1.25rem 1.25rem;
  box-shadow: 0 14px 32px rgba(15, 24, 44, 0.08);
}

.hero-top {
  display: block;
}

.hero-side {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  width: min(180px, 34%);
  height: 8.8rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

h1 {
  margin: 0.2rem 0 1rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.beta-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 93, 170, 0.22);
  background: rgba(31, 93, 170, 0.09);
  color: #1f5daa;
  font-size: 0.78rem;
  font-weight: 700;
}

.beta-help {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 93, 170, 0.3);
  background: rgba(31, 93, 170, 0.12);
  color: #1f5daa;
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: help;
  outline: none;
}

.beta-help:focus-visible {
  box-shadow: 0 0 0 2px rgba(31, 93, 170, 0.28);
}

.beta-popover {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.45rem);
  transform: translateX(-50%);
  width: min(300px, 72vw);
  padding: 0.52rem 0.6rem;
  border-radius: 9px;
  border: 1px solid rgba(12, 34, 64, 0.18);
  background: #ffffff;
  color: #40566f;
  font-size: 0.8rem;
  line-height: 1.35;
  box-shadow: 0 10px 20px rgba(15, 24, 44, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 10;
}

.beta-help:hover .beta-popover,
.beta-help:focus-visible .beta-popover {
  opacity: 1;
}

h2 {
  margin: 1.4rem 0 0.8rem;
  font-size: 1.1rem;
}

.general-pill {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.last-update {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-action-row {
  margin: 0.65rem 0 0;
}

.hero-action-link {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 93, 170, 0.24);
  background: rgba(31, 93, 170, 0.08);
  color: #1f5daa;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-action-link:hover {
  background: rgba(31, 93, 170, 0.14);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 0.8rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow: 0 8px 20px rgba(15, 24, 44, 0.05);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.card-status {
  font-size: 0.83rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-message {
  margin: 0.6rem 0 0;
  color: #7b3b16;
  line-height: 1.35;
  font-size: 0.88rem;
  background: rgba(208, 147, 9, 0.1);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
}

.card-description {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.89rem;
}

.card-description.is-collapsed {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-description-toggle {
  margin-top: 0.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: #1f5daa;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.status-ok {
  background: rgba(19, 143, 87, 0.14);
  color: var(--ok);
}

.status-warning {
  background: rgba(208, 147, 9, 0.14);
  color: var(--warn);
}

.status-outage {
  background: rgba(193, 58, 45, 0.14);
  color: var(--outage);
}

.history-list {
  display: grid;
  gap: 0.7rem;
}

.history-item {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  box-shadow: 0 6px 16px rgba(15, 24, 44, 0.05);
}

.history-item-head {
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
}

.history-item-title {
  margin: 0;
  font-size: 0.94rem;
}

.history-item-state {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.history-item-time {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.history-item-message {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #7b3b16;
  background: rgba(208, 147, 9, 0.1);
  border-radius: 8px;
  padding: 0.42rem 0.52rem;
}

.history-item-toggle {
  margin-top: 0.5rem;
  border: 0;
  background: none;
  padding: 0;
  color: #1f5daa;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.history-item-timeline {
  margin-top: 0.5rem;
}

.history-timeline-entry {
  margin: 0.32rem 0 0;
  padding: 0.38rem 0.5rem;
  font-size: 0.82rem;
  line-height: 1.35;
  border-radius: 7px;
  color: #425872;
  background: rgba(225, 236, 250, 0.72);
}

.history-timeline-entry.resolution {
  color: #0f5e3d;
  background: rgba(19, 143, 87, 0.14);
}

.history-empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(12, 34, 64, 0.2);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.history-more-button {
  margin-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(31, 93, 170, 0.26);
  border-radius: 999px;
  background: rgba(31, 93, 170, 0.08);
  color: #1f5daa;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.42rem 0.72rem;
  cursor: pointer;
}

.history-more-button:hover {
  background: rgba(31, 93, 170, 0.14);
}

.imprint-section {
  margin-top: 1rem;
}

.imprint {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 248, 255, 0.85) 100%);
  border: 1px solid var(--ring);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 22px rgba(15, 24, 44, 0.06);
}

.imprint-title,
.imprint-subtitle,
.imprint-links {
  margin: 0;
}

.imprint-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: #2a3d57;
}

.imprint-subtitle {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.imprint-links {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.imprint a {
  color: #1f5daa;
  text-decoration: none;
}

.imprint-link-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.66rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 93, 170, 0.2);
  background: rgba(31, 93, 170, 0.08);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.imprint-link-chip:hover {
  text-decoration: none;
  background: rgba(31, 93, 170, 0.14);
  border-color: rgba(31, 93, 170, 0.36);
  transform: translateY(-1px);
}

.imprint a:hover:not(.imprint-link-chip) {
  text-decoration: underline;
}

.subscribe-form {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.5rem;
  max-width: 460px;
}

.subscribe-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.subscribe-form input {
  width: 100%;
  border: 1px solid rgba(12, 34, 64, 0.2);
  border-radius: 10px;
  font: inherit;
  padding: 0.55rem 0.62rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

.subscribe-form input:focus-visible {
  outline: 2px solid rgba(31, 93, 170, 0.28);
  outline-offset: 0;
}

.subscribe-submit {
  margin-top: 0.2rem;
  justify-self: start;
  border: 1px solid rgba(31, 93, 170, 0.22);
  border-radius: 999px;
  background: rgba(31, 93, 170, 0.1);
  color: #1f5daa;
  padding: 0.45rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.subscribe-submit:hover {
  background: rgba(31, 93, 170, 0.16);
}

.subscription-feedback {
  margin: 0.7rem 0 0;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(12, 34, 64, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: #455b75;
  font-size: 0.9rem;
}

.subscription-feedback.is-success {
  border-color: rgba(19, 143, 87, 0.2);
  background: rgba(19, 143, 87, 0.1);
  color: #0f5e3d;
}

.subscription-feedback.is-error {
  border-color: rgba(193, 58, 45, 0.2);
  background: rgba(193, 58, 45, 0.08);
  color: #8c2f25;
}

.subscription-note {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.subscription-note a {
  color: #1f5daa;
}

@media (max-width: 900px) {
  .page {
    max-width: 860px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 1rem 0.7rem 2rem;
  }

  .hero-top {
    display: block;
  }

  .hero {
    padding-right: 9.6rem;
  }

  .hero-logo {
    width: 100%;
  }

  .hero-side {
    top: 0.85rem;
    right: 0.75rem;
    width: min(125px, 38%);
    height: 6.9rem;
  }

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

  .card-head {
    align-items: flex-start;
  }
}
