/* Wildeshausen-App – Parken-Block (Ansicht „Service“)
   Rot #ba092f als Akzent, Text #4d4e53, Grau #686971, alles eckig, keine Schatten. */

.pk {
  margin-top: 22px;
  color: var(--ink-2, #4d4e53);
}

.pk-h {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #161618);
}

.pk-sub {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted, #686971);
  text-wrap: pretty;
}

/* ---------- Tarife ------------------------------------------------------- */

.pk-tarife {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

@media (min-width: 640px) {
  .pk-tarife { grid-template-columns: 1fr 1fr; }
}

.pk-tarif {
  padding: 10px 12px;
  background: var(--card, #ffffff);
  border: 1px solid var(--line, #e6e6e9);
  border-left: 3px solid var(--accent, #ba092f);
}

.pk-tarif-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 0;
  font-size: 12.5px;
}

.pk-tarif-kopf b {
  font-weight: 700;
  color: var(--ink, #161618);
}

.pk-tarif-kopf span {
  font-size: 11.5px;
  color: var(--muted, #686971);
  font-variant-numeric: tabular-nums;
}

.pk-tarif-text {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
}

/* ---------- Parkplätze --------------------------------------------------- */

.pk-gruppe {
  margin: 18px 0 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted, #686971);
}

.pk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line, #e6e6e9);
}

.pk-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--tap, 44px);
  padding: 8px 0;
  border-top: 1px solid var(--line, #e6e6e9);
}

.pk-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pk-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink, #161618);
  overflow-wrap: anywhere;
}

/* Name und Bereichs-Etikett stehen in einer Zeile und dürfen umbrechen. */
.pk-name-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
  min-width: 0;
}

.pk-bereich {
  flex: none;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-2, #4d4e53);
  background: #f1f1f3;
  border: 1px solid var(--line-strong, #d4d4d9);
  border-radius: 0;
  white-space: nowrap;
}

.pk-extra {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted, #686971);
}

.pk-zahl {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2, #4d4e53);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Dauerparker, App, Quelle ------------------------------------- */

.pk-hinweis {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e6e6e9);
}

.pk-app {
  margin-top: 14px;
  padding: 12px;
  background: var(--card, #ffffff);
  border: 1px solid var(--line-strong, #d4d4d9);
}

.pk-app-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink, #161618);
}

.pk-app-text {
  margin: 4px 0 10px;
  font-size: 12.5px;
  line-height: 1.45;
}

.pk-app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap, 44px);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  background: var(--accent, #ba092f);
  border: 1px solid var(--accent, #ba092f);
  border-radius: 0;
}

.pk-app-link:hover,
.pk-app-link:active {
  background: var(--accent-ink, #94071f);
  border-color: var(--accent-ink, #94071f);
}

.pk-app-link:focus-visible,
.pk-ordnung:focus-visible {
  outline: 2px solid var(--ink, #161618);
  outline-offset: 2px;
}

.pk-ordnung {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap, 44px);
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--accent, #ba092f);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pk-quelle {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted, #686971);
}

/* ---------- Bereiche ----------------------------------------------------- */
/* Der Bereich ist die Lage im Stadtgebiet, unabhängig von der Parkschein-Regel.
   Die Knöpfe sind Legende und Filter in einem: jeder nennt seinen Bereich und
   zählt die Plätze. Die Bedeutung trägt immer der Text – Farbe allein wäre
   ein Verstoß gegen WCAG 1.4.1. */

.pk-bereiche {
  margin: 16px 0 2px;
}

.pk-bereiche-titel {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted, #686971);
}

.pk-bereiche-text {
  margin: 4px 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2, #4d4e53);
  text-wrap: pretty;
}

.pk-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Rand in Grau #686971: die Umgrenzung eines Bedienelements muss 3:1 halten
   (WCAG 1.4.11), der helle Rahmen des Bestands liegt darunter. */
.pk-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: var(--tap, 44px);
  padding: 0 11px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink, #161618);
  background: var(--card, #ffffff);
  border: 1px solid var(--muted, #686971);
  border-radius: 0;
  cursor: pointer;
}

.pk-chip:hover {
  background: #f1f1f3;
}

.pk-chip[aria-pressed="true"] {
  color: #ffffff;
  background: var(--accent, #ba092f);
  border-color: var(--accent, #ba092f);
}

.pk-chip:focus-visible {
  outline: 2px solid var(--ink, #161618);
  outline-offset: 2px;
}

.pk-chip-zahl {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted, #686971);
}

.pk-chip[aria-pressed="true"] .pk-chip-zahl {
  color: #ffffff;
}

.pk-filter-status {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--muted, #686971);
}

@media (max-width: 380px) {
  .pk-row { gap: 8px; }
  .pk-zahl { font-size: 12px; }
}

/* ---------- Kennzeichen für besondere Parkplätze ------------------------- */
/* Behinderten-, Mutter-Kind- und E-Ladeparkplätze: Symbol + Anzahl, direkt
   hinter dem Namen. Die Legende erklärt die Symbole einmal über der Liste. */
.pk-marken {
  display: inline-flex;
  gap: 4px;
  margin-top: 4px;
  vertical-align: middle;
}

.pk-marke {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px 2px 5px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink, #161618);
  background: #f1f1f3;
  border: 1px solid var(--line-strong, #d4d4d9);
  border-radius: 0;
  white-space: nowrap;
}
.pk-marke svg { flex: none; }
.pk-marke--behindert svg { color: #1f5fa8; }   /* Blau: internationales Zeichen */
.pk-marke--eltern svg { color: #1f5fa8; }
.pk-marke--eladen { border-color: var(--accent, #ba092f); }
.pk-marke--eladen svg { color: var(--accent, #ba092f); }
.pk-marke-zahl { font-variant-numeric: tabular-nums; }

.pk-legende {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 4px;
}
.pk-legende-titel {
  margin: 0 4px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted, #686971);
}
.pk-legende .pk-marke { background: #fff; }
.pk-legende-text { font-weight: 600; }

/* ---------- Preise und Gratis-Angaben ----------------------------------- */
/* Preise fett und mit Tabellenziffern, damit Beträge untereinander vergleichbar
   sind. „kostenlos / kostenfrei / Brötchentaste“ grün hinterlegt – Farbe allein
   trägt die Aussage nicht, das Wort steht daneben. */
.pk-preis {
  font-weight: 700;
  color: var(--ink, #161618);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pk-gratis {
  padding: 0 3px;
  font-weight: 700;
  color: #145c33;
  background: #e8f4ec;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Knopf in der Tarifkarte: filtert die Liste auf diese Regel. */
.pk-tarif-knopf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap, 44px);
  margin-top: 10px;
  padding: 0 14px;
  font-family: var(--ui, sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent, #ba092f);
  background: #fff;
  border: 1px solid currentColor;
  border-radius: 0;
  cursor: pointer;
}
.pk-tarif-knopf:hover { background: #fdf3f4; }
.pk-tarif-knopf[aria-pressed="true"] {
  color: #fff;
  background: var(--accent, #ba092f);
  border-color: var(--accent, #ba092f);
}
.pk-tarif-knopf:focus-visible { outline: 2px solid var(--ink, #161618); outline-offset: 2px; }

@media (forced-colors: active) {
  .pk-tarif-knopf { border: 1px solid ButtonText; background: ButtonFace; color: ButtonText; }
  .pk-gratis { background: Highlight; color: HighlightText; }
}
