@font-face {
  font-family: 'DSEG7 Classic';
  src: url('fonts/DSEG7Classic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #111315;
  --panel: #1b1e21;
  --line: #2a2e33;
  --text: #e8eaed;
  --muted: #8a9099;
  --digit: #ffb21a;
  --digit-glow: rgba(255, 178, 26, 0.45);
  --ghost: rgba(255, 178, 26, 0.07);
  --accent: #3fae5a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 32px 16px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.board {
  max-width: 560px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

h1 span {
  display: inline-block;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
}

.badge {
  padding: 2px 8px;
  border: 1px solid var(--digit);
  border-radius: 999px;
  color: var(--digit);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stations {
  list-style: none;
  margin: 0;
  padding: 0;
}

.station { border-bottom: 1px solid var(--line); }

.station__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s;
}

.station__link:hover,
.station__link:focus-visible { background: #22262a; }

.station__link:focus-visible {
  outline: 2px solid var(--digit);
  outline-offset: -2px;
}

.station__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.station__brand { font-size: 1.1rem; }

.station__address,
.station__status {
  color: var(--muted);
  font-size: 0.875rem;
}

.station__status::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

.station.is-closed .station__status::before { background: #c0392b; }

/* Preisanzeige im 7-Segment-Look */
.price {
  position: relative;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: #050505;
  font-family: 'DSEG7 Classic', monospace;
  font-weight: 700;
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  line-height: 1;
}

.price__ghost,
.price__value {
  display: block;
  white-space: nowrap;
}

.price__ghost {
  position: absolute;
  inset: 8px 12px;
  color: var(--ghost);
}

.price__value {
  position: relative;
  color: var(--digit);
  text-shadow: 0 0 8px var(--digit-glow);
}

.price__tenth {
  font-size: 0.55em;
  vertical-align: 0.75em;
  line-height: 0;
}

.station.is-empty .price__value,
.station.is-closed .price__value {
  opacity: 0.35;
}

.message {
  margin: 0;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  color: #ff8a7a;
  font-size: 0.875rem;
}

.board__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  color: var(--muted);
  font-size: 0.875rem;
}

button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #24282c;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

button:hover { border-color: var(--muted); }
button:disabled { opacity: 0.5; cursor: wait; }

.credits {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.credits a { color: inherit; }

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

@media (max-width: 420px) {
  .station__link { padding: 14px 16px; }
  .board__head, .board__foot { padding-left: 16px; padding-right: 16px; }
}
