/* ═══════════════════════════════════════════════════════════════════
   STANDORTSUCHE — Postleitzahl-Filter über Regionen und Partnerhäusern
   ═══════════════════════════════════════════════════════════════════
   Ein Panel, das auf beiden Übersichtsseiten identisch sitzt: zuerst die
   Frage nach der Postleitzahl, darunter die Karten in der Reihenfolge der
   Entfernung. Ohne JavaScript bleibt das Panel als statischer Hinweis
   stehen und alle Karten sind sichtbar — deshalb ist .ss-panel nicht
   hidden, sondern nur der interaktive Teil.
   ═══════════════════════════════════════════════════════════════════ */

.ss {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 30px 26px;
  box-shadow: 0 18px 44px rgba(30, 22, 16, .06);
}

.ss-kopf { max-width: 640px; }
.ss-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.ss-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-soft); flex-shrink: 0;
}
.ss h2, .ss .ss-titel {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.015em;
  line-height: 1.22; margin-bottom: 10px;
}
.ss-kopf p { font-size: 15px; color: var(--muted); line-height: 1.66; }

/* ─── Eingabe ─── */

.ss-form {
  margin-top: 22px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px; align-items: end;
}
.ss-feld { display: grid; gap: 7px; min-width: 0; }
.ss-feld label {
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.ss-feld input {
  width: 100%; min-height: 54px; padding: 0 16px;
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); appearance: none;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.ss-feld input::placeholder { color: var(--muted); opacity: .8; }
.ss-feld input:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(112, 72, 97, .16);
}
.ss-form .btn { min-height: 54px; white-space: nowrap; }
.ss-reset {
  min-height: 54px; padding: 0 16px; background: none; border: 0;
  font-family: var(--font-body); font-size: 14px; color: var(--muted);
  cursor: pointer; border-radius: var(--radius);
}
.ss-reset:hover { color: var(--ink); text-decoration: underline; }
.ss-reset[hidden] { display: none; }

/* ─── Ergebnis ─── */

.ss-ergebnis {
  margin-top: 20px; padding: 18px 20px;
  background: var(--accent-wash); border: 1px solid rgba(112, 72, 97, .2);
  border-radius: var(--radius);
  font-size: 15px; color: var(--ink-2); line-height: 1.6;
}
.ss-ergebnis[hidden] { display: none; }
.ss-ergebnis.warn {
  background: var(--gold-light); border-color: rgba(138, 111, 58, .28);
}
.ss-ergebnis strong { font-weight: 600; color: var(--ink); }
.ss-ergebnis a { color: var(--accent); font-weight: 500; text-decoration: underline; }
.ss-ergebnis .ss-zeile + .ss-zeile { margin-top: 7px; }

.ss-hinweis { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── Entfernungs-Plakette auf den Karten ─── */

.ss-km {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start; margin-bottom: 12px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--accent-wash); border: 1px solid rgba(112, 72, 97, .22);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-deep);
  white-space: nowrap;
}
.ss-km.naeh { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Karten, die der Textfilter ausschließt */
.ss-aus { display: none !important; }

/* Leerer Filter */
.ss-leer {
  margin-top: 26px; padding: 26px; text-align: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 15px; color: var(--muted);
}
.ss-leer[hidden] { display: none; }

/* ─── Verzeichnis A–Z (immer im Quelltext, auch ohne JavaScript) ─── */

.ss-az { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.ss-az h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 17px;
  margin-bottom: 12px;
}
.ss-az ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.ss-az a {
  display: inline-block; padding: 6px 12px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; font-size: 13.5px; color: var(--ink-2);
}
.ss-az a:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Schmale Fenster ─── */

@media (max-width: 720px) {
  .ss { padding: 24px 20px 22px; border-radius: var(--radius); }
  .ss-form { grid-template-columns: minmax(0, 1fr); }
  .ss-form .btn, .ss-reset { width: 100%; }
}
