/* suche.css — Site-Suche (/suche), W7.
   Grosses Suchfeld im Page-Hero, gruppierte Trefferlisten mit Snippet + <mark>,
   Leer-/Kein-Treffer-Zustand. Tokens 1:1 aus style.css. Mobil: Touch-Ziele >= 44px,
   Inputs >= 16px. Keine em-dashes im sichtbaren Text. */

/* ---- Suchformular im Hero ------------------------------------------------ */
.suche-form {
  max-width: 760px;
  margin-top: 32px;
}
.suche-form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.suche-form__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-l);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.suche-form__row:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 72, 97, 0.12), var(--shadow-l);
}
.suche-form__icon {
  display: inline-flex;
  color: var(--muted);
  flex-shrink: 0;
}
.suche-form__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.suche-form__input::placeholder {
  color: var(--muted-sof);
}
.suche-form__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.suche-form__submit {
  flex-shrink: 0;
  min-height: 44px;
}
.suche-form__hint {
  margin: 14px 0 0 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---- Ergebnisbereich ------------------------------------------------------ */
.suche-results .section__inner {
  max-width: 880px;
}
.suche-state {
  max-width: 760px;
}

.suche-summary {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.suche-summary__count {
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  color: var(--ink);
}

.suche-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.suche-jump .pill {
  min-height: 36px;
}
.suche-jump__n {
  margin-left: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--muted);
}

/* ---- Gruppe --------------------------------------------------------------- */
.suche-group + .suche-group {
  margin-top: 44px;
}
.suche-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.suche-group__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.suche-group__all {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  white-space: nowrap;
  padding: 8px 0;
}
.suche-group__all:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Trefferliste --------------------------------------------------------- */
.suche-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.suche-item + .suche-item {
  border-top: 1px solid var(--line-onW);
}
.suche-item__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  margin: 0 -12px;
  border-radius: var(--r-4);
  color: inherit;
  transition: background 0.15s var(--ease);
}
.suche-item__link:hover,
.suche-item__link:focus-visible {
  background: var(--bg-warm);
}
.suche-item__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.suche-item__link:hover .suche-item__title {
  color: var(--blue);
}
.suche-item__meta {
  font-size: 13px;
  color: var(--muted);
}
.suche-item__snippet {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.suche-item__snippet mark {
  background: rgba(232, 223, 207, 0.9);
  color: var(--ink);
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 600;
}

/* ---- Leer- / Kein-Treffer-Zustand ---------------------------------------- */
.suche-empty {
  max-width: 640px;
}
.suche-empty h2 {
  margin: 0 0 12px;
}
.suche-empty p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.suche-empty__lead {
  color: var(--muted);
}
.suche-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.suche-shortcuts .pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---- Mobil ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .suche-form__row {
    flex-wrap: wrap;
    padding: 6px;
    border-radius: 24px;
  }
  .suche-form__icon {
    display: none;
  }
  .suche-form__input {
    flex-basis: 100%;
    height: 48px;
    padding: 0 12px;
    font-size: 18px;
  }
  .suche-form__submit {
    width: 100%;
    min-height: 48px;
  }
  .suche-form__hint {
    margin-left: 4px;
  }
  .suche-group__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .suche-item__link {
    margin: 0;
    padding: 14px 8px;
  }
}
