/* Prime City — Gesetzbuch */

body { min-height: 100vh; }

.page-head {
  text-align: center;
  padding: 100px 6% 28px;
  max-width: 620px;
  margin: 0 auto;
}

.page-head h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 12px;
  font-weight: 700;
}

.page-head p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 6% 80px;
}

.cat-block { margin-bottom: 36px; }

.cat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--text);
}

.cat-title::before {
  content: '';
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: var(--prime);
}

.law-item {
  margin-bottom: 10px;
}

.law-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.law-para {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--prime-bright);
  background: var(--prime-soft);
  border: 1px solid var(--prime-border);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.law-title {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
}

.law-fine-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.law-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}

.law-item.open .law-chevron { transform: rotate(-135deg); }

.law-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.law-a-inner {
  padding: 0 18px 18px 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.law-a-inner p { margin-bottom: 10px; }
.law-a-inner ul { padding-left: 18px; margin-bottom: 10px; }
.law-a-inner li { margin-bottom: 4px; }

.law-sentence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.sentence-chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.sentence-chip--fine { color: #86efac; border-color: rgba(34, 197, 94, 0.35); }
.sentence-chip--jail { color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); }

.state-msg {
  text-align: center;
  color: var(--text-dim);
  padding: 48px 0;
  font-size: 0.88rem;
}

.state-msg.error { color: #fca5a5; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.84rem;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.back-link:hover {
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.12);
}

.site-footer {
  padding: 32px 6%;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.78rem;
}

@media (max-width: 620px) {
  .law-fine-badge { display: none; }
  .law-a-inner { padding-left: 16px; }
}
