/* Suchseite: grosses Suchfeld, Vorschlagsliste, Themenkacheln, aufklappbare Gruppen */
.suche-hero { padding: 48px 0 56px; }
.suche-hero-inner { text-align: center; }
.suche-hero h1 { margin-bottom: .6rem; }
.suche-hero p { max-width: 640px; margin: 0 auto 1.6rem; }
.suche-form { max-width: 760px; margin: 0 auto; }
.suche-feldwrap { position: relative; text-align: left; }
.suche-lupe { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); color: #1a1a2e; pointer-events: none; z-index: 2; }
.suche-feld {
  width: 100%; box-sizing: border-box; padding: 1.05rem 1.4rem 1.05rem 3.5rem;
  font-size: 1.25rem; font-weight: 500; font-family: inherit; color: #1a1a2e;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(to right, #00c06a, #005430) border-box;
  border: 2px solid transparent; border-radius: 14px; outline: none;
  box-shadow: 0 4px 16px rgba(0, 107, 62, .08); -webkit-appearance: none; appearance: none;
  transition: box-shadow .18s ease;
}
.suche-feld::placeholder { color: #94a3b8; font-weight: 400; }
.suche-feldwrap:has(.suche-platzhalter) .suche-feld::placeholder { color: transparent; }
.suche-platzhalter {
  position: absolute; left: 3.5rem; right: 1.4rem; top: 50%; transform: translateY(-50%);
  pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 1.25rem; line-height: 1.3; z-index: 1;
}
.suche-ph-frage { color: #374151; font-weight: 500; }
.suche-ph-bsp { color: #94a3b8; font-weight: 400; margin-left: .25rem; }
.suche-feld:not(:placeholder-shown) + .suche-platzhalter,
.suche-platzhalter[hidden] { display: none; }
.suche-feld:focus { box-shadow: 0 0 0 3px rgba(0, 192, 106, .2), 0 6px 20px rgba(0, 107, 62, .12); }
.suche-feld::-webkit-search-cancel-button { height: 1.2rem; width: 1.2rem; cursor: pointer; }

.suche-vorschlag {
  position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 0 0 .35rem; list-style: none;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(to right, #00c06a, #005430) border-box;
  border: 1.5px solid transparent; border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
  max-height: 70vh; overflow-y: auto; overflow-x: hidden;
}
.suche-vorschlag[hidden] { display: none; }
.suche-gruppe {
  padding: .42rem 1.2rem; font-size: .78rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: #fff;
  background: linear-gradient(to right, #00c06a, #005430);
}
.suche-gruppe:not(:first-child) { margin-top: .35rem; }
.suche-leer { padding: .8rem 1.2rem; color: #374151; font-size: .95rem; }
.suche-vorschlag [role="option"] a { display: block; padding: .6rem 1.2rem; color: #1a1a2e; font-size: 1.02rem; text-decoration: none; }
.suche-vorschlag [role="option"][aria-selected="true"] a,
.suche-vorschlag [role="option"] a:hover { background: #ecf7f1; color: #006b3e; }
.suche-vorschlag mark, .suche-ergebnis mark { background: #d6f1e2; color: inherit; font-weight: 600; border-radius: 3px; padding: 0 1px; }

.suche-bereich { max-width: 1100px; margin: 2rem auto 3rem; padding: 0 1.5rem; }
.suche-ergebnis:empty { display: none; }
.suche-ergebnis { margin-bottom: 2.2rem; }
.suche-ergebnis-kopf { font-size: 1.15rem; font-weight: 600; margin-bottom: .75rem; }
.suche-ergebnis-sektion { margin-bottom: 1.35rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.suche-ergebnis-gruppe {
  margin: 0; padding: .5rem 1.1rem; font-size: .82rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: #fff;
  background: linear-gradient(to right, #00c06a, #005430);
}
.suche-ergebnis-liste { list-style: none; margin: 0; padding: 0 1.1rem; }
.suche-ergebnis-liste li { padding: .55rem 0; border-bottom: 1px solid #e5e7eb; }
.suche-ergebnis-liste li:last-child { border-bottom: none; }
.suche-ergebnis-liste a { font-weight: 500; color: #006b3e; }
.suche-tag { margin-left: .6rem; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #006b3e; background: #ecf7f1; border-radius: 999px; padding: .1rem .55rem; }

.suche-browse h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; text-align: center; }
.suche-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.suche-kachel {
  display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; text-align: left;
  padding: 1rem 1.1rem; font-family: inherit; cursor: pointer; color: #1a1a2e;
  background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px; transition: border-color .15s, background .15s;
}
.suche-kachel:hover { border-color: #006b3e; background: #ecf7f1; }
.suche-kachel.ist-offen { border-color: #006b3e; background: #ecf7f1; box-shadow: 0 0 0 1.5px #006b3e inset; }
.suche-kachel:focus-visible { outline: 3px solid #006b3e; outline-offset: 2px; }
.suche-kachel-name { font-size: 1.05rem; font-weight: 600; }
.suche-kachel-zahl { font-size: .85rem; font-weight: 400; color: #374151; }

.suche-panel { margin-top: 1.4rem; padding: 1.2rem 1.4rem; background: #f5f7fa; border: 1px solid #e5e7eb; border-radius: 14px; }
.suche-panel[hidden] { display: none; }
.suche-panel-kopf { font-size: 1.2rem; font-weight: 600; color: #006b3e; margin-bottom: .8rem; }
.suche-hub { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: .5rem; }
.suche-hub > summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; cursor: pointer; padding: .65rem 1rem; font-weight: 500; list-style: none; }
.suche-hub > summary::-webkit-details-marker { display: none; }
.suche-hub > summary::before { content: "\25B8"; color: #006b3e; margin-right: .6rem; transition: transform .15s; }
.suche-hub[open] > summary::before { transform: rotate(90deg); }
.suche-hub > summary > span:first-child { flex: 1; }
.suche-hub-zahl { font-size: .8rem; font-weight: 500; color: #374151; background: #f1f3f5; border-radius: 999px; padding: .05rem .6rem; }
.suche-hub-inhalt { padding: .2rem 1rem .9rem 2rem; }
.suche-hub-inhalt .suche-hub { background: #f9fafb; }
.suche-hub-link { margin: .2rem 0 .6rem; font-weight: 500; }
.suche-hub-link a { color: #006b3e; }
.suche-seiten { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 2rem; }
.suche-seiten li { break-inside: avoid; padding: .18rem 0; font-size: .95rem; }
.suche-seiten a { color: #1a1a2e; text-decoration: underline; text-decoration-color: #b7e0c9; text-underline-offset: 3px; }
.suche-seiten a:hover { color: #006b3e; text-decoration-color: #006b3e; }
.suche-hinweis { color: #374151; text-align: center; }

@media (max-width: 640px) {
  .suche-hero { padding: 32px 0 40px; }
  .suche-feld { font-size: 1.08rem; padding: .9rem 1rem .9rem 3rem; border-radius: 12px; }
  .suche-platzhalter { left: 3rem; right: 1rem; font-size: 1.05rem; }
  .suche-lupe { left: .95rem; width: 22px; height: 22px; }
  .suche-hub-inhalt { padding-left: 1rem; }
  .suche-seiten { columns: 1; }
}
