:root {
  /* Palette taken from mhparena.ludwigsburg.de */
  --brand: #0062b0;
  --brand-dark: #004a86;
  --brand-deep: #003966;
  --brand-tint: #e7f0f8;
  --ink: #474747;
  --ink-strong: #1c1c1c;
  --muted: #6f6f6f;
  --line: #d4d2d2;
  --surface: #fff;
  --canvas: #d4d2d2;
  --open: #16a085;
  --focus: #f99d1c;
  --sheet-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

/* The arena site centres a white content sheet on a grey canvas. */
.sheet {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--sheet-max);
  flex-direction: column;
  margin-inline: auto;
  background: var(--surface);
}

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 4px solid var(--brand);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  color: #fff;
  background: var(--brand);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand__name {
  color: var(--ink-strong);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.brand__descriptor {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 14px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead__status-long {
  display: none;
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--open);
}

.pulse::after {
  position: absolute;
  inset: 0;
  background: var(--open);
  content: "";
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgb(255 255 255 / 7%) 0 2px,
    transparent 2px 26px
  );
  content: "";
}

.hero::after {
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 320px;
  height: 320px;
  border: 40px solid rgb(255 255 255 / 6%);
  content: "";
}

.hero__inner {
  position: relative;
  padding: 46px 20px 52px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 4px solid #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 11vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-transform: uppercase;
}

.hero__intro {
  max-width: 46ch;
  margin: 20px 0 0;
  color: rgb(255 255 255 / 88%);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Content ---------- */

.content {
  flex: 1;
  padding: 40px 20px 48px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-head__title {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-head__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kiosk-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

/* ---------- Kiosk cards ---------- */

.kiosk-card {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  background: var(--surface);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.kiosk-card__body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 22px 20px;
}

.kiosk-card__index {
  position: absolute;
  top: 12px;
  right: 18px;
  color: var(--line);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  transition: color 180ms ease;
}

.kiosk-card__name {
  padding-right: 60px;
  color: var(--ink-strong);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.kiosk-card__status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 12px;
  color: var(--open);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kiosk-card__status::before {
  width: 8px;
  height: 8px;
  flex: none;
  background: currentcolor;
  content: "";
}

.kiosk-card__hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.kiosk-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  background: var(--brand);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: background-color 180ms ease;
}

.kiosk-card__arrow {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.kiosk-card:hover {
  border-color: var(--brand);
  box-shadow: 0 18px 34px rgb(0 0 0 / 16%);
  transform: translateY(-4px);
}

.kiosk-card:hover .kiosk-card__cta {
  background: var(--brand-deep);
}

.kiosk-card:hover .kiosk-card__index {
  color: var(--brand-tint);
}

.kiosk-card:hover .kiosk-card__arrow {
  transform: translateX(5px);
}

.kiosk-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.empty-state {
  margin: 0;
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--focus);
  background: #fbfbfb;
  color: var(--ink-strong);
  font-weight: 700;
  text-align: center;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 18px;
  margin: 44px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step__num {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.step__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step__title {
  color: var(--ink-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.step__text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ---------- Footer ---------- */

.footer {
  padding: 26px 20px 30px;
  background: var(--brand-deep);
  color: rgb(255 255 255 / 82%);
}

.footer__lead {
  margin: 0;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  .masthead {
    padding: 22px 32px;
  }

  .masthead__status-long {
    display: inline;
  }

  .hero__inner {
    padding: 68px 32px 76px;
  }

  .content {
    padding: 52px 32px 60px;
  }

  .kiosk-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .empty-state {
    grid-column: 1 / -1;
  }

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

  .footer {
    padding: 32px;
  }
}

@media (min-width: 960px) {
  .sheet {
    box-shadow: 0 0 60px rgb(0 0 0 / 12%);
  }

  .masthead,
  .footer {
    padding-inline: 56px;
  }

  .hero__inner {
    padding: 92px 56px 100px;
  }

  .content {
    padding: 64px 56px 72px;
  }

  .kiosk-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .kiosk-card__body {
    padding: 30px 26px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .kiosk-card,
  .empty-state,
  .step__num {
    border: 2px solid CanvasText;
  }

  .kiosk-card__status::before,
  .pulse {
    background: CanvasText;
  }
}
