/* Suche der Startseite im Stil der Apple-Suche: grosses Feld, Trefferliste links, Vorschau rechts. */
.hub-search {
  position: relative;
  z-index: 36;
  max-width: 760px;
  width: 100%;
  margin: 2px auto 8px;
}

.hs-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 18px;
  border: 1px solid #c7cfdb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(36, 50, 75, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Roter Glow nur im ersten Moment: der ganze Rand leuchtet weich auf (mehrere Schattenstufen) und klingt langsam ab */
.hs-field::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow:
    0 0 0 1px rgba(192, 35, 24, 0.55),
    0 0 8px 1px rgba(192, 35, 24, 0.45),
    0 0 20px 4px rgba(192, 35, 24, 0.28),
    0 0 44px 10px rgba(192, 35, 24, 0.16);
  animation: hs-glow 3.6s cubic-bezier(0.33, 0, 0.2, 1) 0.4s 1 both;
}

@keyframes hs-glow {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-field::before { animation: none; }
}
.hs-field:focus-within,
.hub-search.is-open .hs-field {
  border-color: rgba(192, 35, 24, 0.55);
  box-shadow: 0 10px 32px rgba(36, 50, 75, 0.12), 0 0 0 3px rgba(192, 35, 24, 0.12);
}

.hs-field > svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-right: 12px;
  color: #5d6b83;
}

.hs-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.1rem;
}

.hs-input::placeholder {
  color: #8493a8;
}

.hs-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-left: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef1f5;
  color: #52627d;
  cursor: pointer;
}

.hs-clear[hidden] {
  display: none;
}

.hs-clear svg {
  width: 14px;
  height: 14px;
}

.hs-clear:hover {
  background: #e2e7ee;
  color: #24324b;
}

.hs-kbd {
  flex: 0 0 auto;
  margin-left: 10px;
  min-width: 26px;
  padding: 3px 8px;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  background: #f6f8fb;
  color: #5d6b83;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.hub-search.is-open .hs-kbd {
  display: none;
}

.hs-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-rows: minmax(0, 1fr);
  max-height: min(68vh, 540px);
  border: 1px solid #d2d9e3;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(36, 50, 75, 0.2);
  overflow: hidden;
}

.hs-panel[hidden] {
  display: none;
}

.hs-list {
  padding: 8px 8px 10px;
  overflow-y: auto;
  border-right: 1px solid #e3e8ef;
}

.hs-preview {
  position: relative;
  padding: 22px 24px;
  overflow-y: auto;
  background: #f8fafc;
}

.hs-group {
  padding: 10px 12px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5d6b83;
}

.hs-more {
  padding: 2px 12px 6px 58px;
  font-size: 0.78rem;
  color: #8493a8;
}

.hs-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.hs-row.is-active {
  background: #f1f4f8;
}

.hs-row.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 3px;
  background: #C02318;
}

.hs-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--c, #52627d) 14%, white);
  color: var(--c, #52627d);
  font-size: 0.95rem;
  font-weight: 700;
}

.hs-ico svg {
  width: 18px;
  height: 18px;
}

.hs-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hs-txt b {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-txt small {
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-note,
.hs-empty {
  padding: 14px 14px;
  font-size: 0.86rem;
  color: var(--muted);
}

.hs-empty {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hs-empty b {
  color: var(--text);
}

.hs-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 4px;
  margin-top: 6px;
  border-top: 1px solid #e3e8ef;
  font-size: 0.78rem;
  color: #5d6b83;
}

.hs-examples button {
  padding: 4px 10px;
  border: 1px solid #d7dee8;
  border-radius: 999px;
  background: #ffffff;
  color: #314663;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.hs-examples button:hover {
  border-color: #C02318;
  color: #C02318;
}

mark {
  padding: 0 1px;
  border-radius: 3px;
  background: rgba(192, 35, 24, 0.14);
  color: inherit;
}

.hs-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c, #52627d) 13%, white);
  color: var(--c, #52627d);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hs-preview h3 {
  margin: 10px 0 8px;
  font-size: 1.35rem;
  color: #223751;
}

.hs-preview p {
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #3d4d68;
}

.hs-meta {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.hs-meta li {
  position: relative;
  padding: 3px 0 3px 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hs-meta li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.8em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ea4bc;
}

.hs-swatch {
  height: 84px;
  margin-bottom: 14px;
  border: 1px solid rgba(36, 50, 75, 0.18);
  border-radius: 14px;
}

.hs-values {
  margin: 0 0 14px;
}

.hs-values > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #e3e8ef;
}

.hs-values dt {
  font-size: 0.86rem;
  color: var(--muted);
}

.hs-values dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.hs-big dd {
  font-size: 1.25rem;
}

.hs-verdict {
  font-weight: 700;
}

.hs-verdict.is-in { color: #2f6a53; }
.hs-verdict.is-out { color: #9a6a1c; }

.hs-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #C02318;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.hs-open span {
  opacity: 0.75;
  font-weight: 400;
}

.hs-open:hover,
.hs-open:focus-visible {
  background: #a51d13;
  outline: none;
}

@media (max-width: 760px) {
  .hs-panel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    max-height: 62vh;
  }

  .hs-preview {
    display: none;
  }

  .hs-list {
    border-right: 0;
  }

  .hs-kbd {
    display: none;
  }

  .hs-field {
    height: 54px;
  }

  .hs-input {
    font-size: 1rem;
  }
}

/* Suche als Fenster auf allen anderen Seiten (Lupe im Seitenkopf) */
.nav-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin-right: 8px;
  padding: 0;
  border: 1px solid #d7dee8;
  border-radius: 10px;
  background: #ffffff;
  color: #314663;
  cursor: pointer;
}

.nav-search svg {
  width: 20px;
  height: 20px;
}

.nav-search:hover,
.nav-search:focus-visible {
  border-color: #C02318;
  color: #C02318;
  outline: none;
}

.hs-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10vh 14px 0;
}

.hs-overlay[hidden] {
  display: none;
}

.hs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 34, 52, 0.38);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.hs-overlay .hub-search {
  position: relative;
  margin: 0;
}

body.hs-lock {
  overflow: hidden;
}

/* Abdunkeln der Startseite hinter der offenen Suche */
.hs-dim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(24, 34, 52, 0.38);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.hs-dim.is-on {
  opacity: 1;
  pointer-events: auto;
}

html.hs-lock-page,
html.hs-lock-page body {
  overflow: hidden;
}

.hs-list {
  overscroll-behavior: contain;
}

/* Nur fuer Screenreader sichtbar */
.hs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
