:root {
  --accent: #a259ff;
  --bg: #0a0a10;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f7;
  --muted: #8b8b96;
  --found: #35d0c0;
  --missing: #e0a72e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  min-height: 100vh;
  padding-bottom: 84px;
}

.muted {
  color: var(--muted);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.logo {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.clock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.clock .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

main {
  padding: 0 16px;
  max-width: 480px;
  margin: 0 auto;
}

.view {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.view.active {
  display: flex;
}

.view.placeholder {
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  color: var(--muted);
  font-size: 1.1rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
}

.hero-empty {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.band-name {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(162, 89, 255, 0.4);
}

.band-genre {
  margin: 4px 0 16px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff6ec7);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.band-time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.social-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.social-row a {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  min-width: 70px;
}

.portrait-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.umbaupause {
  background: repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.03) 0 10px,
      rgba(255, 255, 255, 0.06) 10px 20px
    ),
    var(--card-bg);
}

.umbaupause-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.umbaupause-next {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}

.umbaupause-next-time {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
}

.umbaupause-next-time strong {
  font-size: 1.2rem;
}

.umbaupause-next-band {
  display: flex;
  flex-direction: column;
}

.stats-row {
  display: flex;
  gap: 12px;
}

.stat {
  flex: 1;
}

.stat h3 {
  margin: 0 0 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-sub {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.stat-details {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.lost-found h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.lost-found-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 260px;
  overflow-y: auto;
}

.lf-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.lf-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

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

.lf-badge {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  text-transform: uppercase;
}

.lf-badge.gefunden {
  color: var(--found);
}

.lf-badge.vermisst {
  color: var(--missing);
}

.lf-location {
  color: var(--muted);
  font-size: 0.8rem;
}

.lf-ref {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(10, 10, 16, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--card-border);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 6px 0;
}

.nav-btn svg {
  width: 22px;
  height: 22px;
}

.nav-btn.active {
  color: var(--accent);
}

.nav-btn[hidden] {
  display: none;
}
