/* Global website search — nav dropdown + full results page. */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.gsearch {
  position: relative;
  height: 40px;
  font-family: 'Univers', 'Ebrima', sans-serif;
}

.gsearch-trigger {
  height: 40px;
  min-width: 132px;
  padding: 0 12px 0 14px;
  border: 1px solid #d8d7d3;
  border-radius: 999px;
  background: #fbfaf7;
  color: #11110f;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gsearch-trigger:hover,
.gsearch-trigger.is-open {
  border-color: #f08300;
  background: #fff3e7;
  color: #9c5200;
}

.gsearch-trigger:active { transform: scale(0.98); }
.gsearch-trigger:focus-visible,
.gsearch-close:focus-visible,
.gsearch-clear:focus-visible,
.gsearch-result:focus-visible {
  outline: 3px solid rgba(240, 131, 0, 0.34);
  outline-offset: 2px;
}

.gsearch-trigger-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.gsearch-trigger kbd,
.gsearch-key-hint kbd {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid #d8d7d3;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #f1f0ec;
  color: #696863;
  display: inline-grid;
  place-items: center;
  font: 700 11px/1 'Univers', 'Ebrima', sans-serif;
}

.gsearch-trigger kbd { margin-left: auto; }

.gsearch-panel {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100vh - 124px);
  background: #fbfaf7;
  border: 1px solid #d8d7d3;
  border-top: 4px solid #f08300;
  box-shadow: 0 28px 72px rgba(22, 20, 17, 0.2);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  z-index: 80;
  animation: gsearch-in 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes gsearch-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.gsearch-head {
  padding: 24px 26px 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.gsearch-head > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gsearch-eyebrow,
.gsearch-group-head,
.gsearch-result-context {
  color: #bd6600;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gsearch-head label {
  color: #11110f;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.018em;
}

.gsearch-close {
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  border: 1px solid #d8d7d3;
  border-radius: 999px;
  background: transparent;
  color: #4e4d49;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}

.gsearch-close:hover { border-color: #11110f; color: #11110f; }

.gsearch-input-wrap {
  margin: 0 26px 20px;
  min-height: 58px;
  padding: 0 16px;
  background: #f2f0ea;
  border: 1px solid transparent;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: #7b7972;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.gsearch-input-wrap:focus-within {
  background: #fffdfa;
  border-color: #f08300;
  box-shadow: 0 0 0 3px rgba(240, 131, 0, 0.12);
  color: #11110f;
}

.gsearch-input-wrap input {
  width: 100%;
  min-width: 0;
  padding: 15px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #11110f;
  font: 600 18px/1.25 'Univers', 'Ebrima', sans-serif;
  appearance: none;
}

.gsearch-input-wrap input::placeholder { color: #8d8a82; font-weight: 450; }
.gsearch-input-wrap input::-webkit-search-cancel-button { display: none; }

.gsearch-clear {
  padding: 6px 0 6px 8px;
  border: 0;
  background: transparent;
  color: #8c4b00;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gsearch-results {
  min-height: 160px;
  overflow-y: auto;
  border-top: 1px solid #e4e2dc;
  background: #fffdfa;
  overscroll-behavior: contain;
  scrollbar-color: #c9c6be transparent;
  scrollbar-width: thin;
}

.gsearch-guidance {
  min-height: 180px;
  padding: 34px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
}

.gsearch-guidance-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f08300;
  color: #fffaf3;
  display: grid;
  place-items: center;
  font: 800 15px/1 'Univers', 'Ebrima', sans-serif;
}

.gsearch-guidance strong,
.gsearch-empty strong { color: #11110f; font-size: 16px; }
.gsearch-guidance p {
  max-width: 52ch;
  margin: 6px 0 0;
  color: #68665f;
  font-size: 13px;
  line-height: 1.5;
}

.gsearch-loading { padding: 18px 26px; display: grid; gap: 10px; }
.gsearch-loading span {
  height: 62px;
  background: linear-gradient(100deg, #f1efe9 20%, #faf8f3 50%, #f1efe9 80%);
  background-size: 200% 100%;
  animation: gsearch-shimmer 1.2s linear infinite;
}
@keyframes gsearch-shimmer { to { background-position: -200% 0; } }

.gsearch-empty {
  min-height: 180px;
  padding: 42px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  color: #68665f;
  font-size: 13px;
}

.gsearch-group { padding: 16px 20px 6px; }
.gsearch-group + .gsearch-group { border-top: 1px solid #e4e2dc; }
.gsearch-group-head {
  min-height: 24px;
  padding: 0 8px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gsearch-group-head span:last-child {
  min-width: 24px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f1efe9;
  color: #66635d;
  display: inline-grid;
  place-items: center;
  letter-spacing: 0;
}

.gsearch-list { display: grid; }
.gsearch-result {
  min-height: 74px;
  padding: 10px 10px 10px 8px;
  color: #11110f;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-top: 1px solid #efede7;
  transition:
    background 120ms ease,
    color 120ms ease;
}
.gsearch-result:first-child { border-top: 0; }
.gsearch-result:hover,
.gsearch-result.is-active { background: #fff1e2; }

.gsearch-result-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #11110f;
  color: #fbfaf7;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 850;
}
.gsearch-result-mark.is-program { background: #f08300; }
.gsearch-result-mark.is-page {
  background: #eeece5;
  color: #11110f;
  font-size: 14px;
}

.gsearch-result-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.gsearch-result-copy strong {
  max-width: 100%;
  overflow: hidden;
  color: #11110f;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gsearch-result-copy > span:not(.gsearch-result-context) {
  max-width: 100%;
  overflow: hidden;
  color: #64625c;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gsearch-result-copy small { color: #85827b; font-size: 10px; font-weight: 650; }
.gsearch-result-context { color: #ad5c00; font-size: 9px; }
.gsearch-result-arrow {
  color: #9b9890;
  font-size: 18px;
  transition: transform 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gsearch-result:hover .gsearch-result-arrow,
.gsearch-result.is-active .gsearch-result-arrow { color: #bd6600; transform: translateX(3px); }

.gsearch-footer {
  min-height: 48px;
  padding: 0 26px;
  border-top: 1px solid #d8d7d3;
  background: #f2f0ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #77746d;
  font-size: 11px;
  font-weight: 650;
}
.gsearch-footer > a {
  color: #11110f;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 800;
}
.gsearch-footer > a:hover { color: #ad5c00; }
.gsearch-key-hint { display: inline-flex; align-items: center; gap: 5px; }
.gsearch-key-hint kbd { min-width: 18px; height: 18px; font-size: 9px; }

@media (max-width: 1100px) {
  .gsearch-trigger { min-width: 40px; width: 40px; padding: 0; justify-content: center; }
  .gsearch-trigger-label,
  .gsearch-trigger > kbd { display: none; }
}

@media (max-width: 900px) {
  .gsearch-panel {
    position: fixed;
    top: 92px;
    left: 16px;
    right: 16px;
    width: auto;
    max-height: calc(100dvh - 108px);
  }
}

@media (max-width: 640px) {
  .gsearch-panel { left: 10px; right: 10px; }
  .gsearch-head { padding: 18px 18px 12px; }
  .gsearch-head label { font-size: 19px; }
  .gsearch-input-wrap { margin: 0 18px 14px; min-height: 52px; padding: 0 13px; }
  .gsearch-input-wrap input { font-size: 15px; }
  .gsearch-group { padding: 13px 10px 4px; }
  .gsearch-result { grid-template-columns: 34px minmax(0, 1fr) 18px; gap: 9px; }
  .gsearch-result-copy > span:not(.gsearch-result-context) { display: none; }
  .gsearch-footer { padding: 0 18px; }
  .gsearch-key-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gsearch-panel,
  .gsearch-loading span { animation: none; }
  .gsearch-trigger,
  .gsearch-result,
  .gsearch-result-arrow { transition: none; }
}

/* Full /suche results page */
.ssearch-page {
  padding: 72px 0 120px;
  background: #f4f2ed;
  color: #11110f;
  font-family: 'Univers', 'Ebrima', sans-serif;
}

.ssearch-bar {
  min-height: 78px;
  padding: 0 24px;
  border: 1px solid #d5d2ca;
  border-bottom: 4px solid #f08300;
  background: #fffdfa;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  color: #7a7770;
  box-shadow: 0 16px 44px rgba(34, 31, 26, 0.08);
}
.ssearch-bar:focus-within { color: #11110f; border-color: #f08300; }
.ssearch-bar input {
  width: 100%;
  min-width: 0;
  padding: 20px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #11110f;
  font: 650 clamp(19px, 2.4vw, 28px)/1.2 'Univers', 'Ebrima', sans-serif;
}
.ssearch-bar input::placeholder { color: #8a877f; font-weight: 450; }
.ssearch-bar input::-webkit-search-cancel-button { display: none; }
.ssearch-bar button {
  padding: 8px 0 8px 12px;
  border: 0;
  background: transparent;
  color: #a75800;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ssearch-summary {
  min-height: 68px;
  padding: 22px 2px;
  color: #68655f;
  font-size: 14px;
}
.ssearch-summary strong { color: #11110f; font-size: 20px; }

.ssearch-intro,
.ssearch-state {
  min-height: 260px;
  padding: 48px;
  border: 1px solid #dcd9d1;
  background: #fffdfa;
  display: flex;
  align-items: center;
  gap: 24px;
}
.ssearch-intro > span {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #f08300;
  color: #fffaf3;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ssearch-intro strong,
.ssearch-state strong { font-size: 22px; }
.ssearch-intro p {
  max-width: 56ch;
  margin: 8px 0 0;
  color: #66635d;
  font-size: 15px;
  line-height: 1.55;
}
.ssearch-state {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  color: #66635d;
}
.ssearch-state a { margin-top: 12px; color: #a75800; font-weight: 750; text-decoration: none; }

.ssearch-page-loading { display: grid; gap: 14px; }
.ssearch-page-loading span {
  height: 112px;
  border: 1px solid #e0ddd6;
  background: linear-gradient(100deg, #efede7 20%, #faf8f3 50%, #efede7 80%);
  background-size: 200% 100%;
  animation: gsearch-shimmer 1.2s linear infinite;
}

.ssearch-groups { display: grid; gap: 64px; }
.ssearch-group { display: grid; gap: 18px; }
.ssearch-group-head {
  padding-bottom: 14px;
  border-bottom: 1px solid #c9c6be;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.ssearch-group-head > div { display: flex; align-items: center; gap: 12px; }
.ssearch-group-head > div > span { color: #f08300; font-size: 11px; }
.ssearch-group-head h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.025em;
}
.ssearch-group-head > span {
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #11110f;
  color: #fbfaf7;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.ssearch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ssearch-card {
  min-height: 142px;
  padding: 22px 20px;
  border: 1px solid #dcd9d1;
  background: #fffdfa;
  color: #11110f;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 15px;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ssearch-card:hover {
  border-color: #f08300;
  background: #fff8ef;
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(34, 31, 26, 0.09);
}
.ssearch-card-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #11110f;
  color: #fbfaf7;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 850;
}
.ssearch-card-mark.is-program { background: #f08300; }
.ssearch-card-mark.is-page { background: #e9e6de; color: #11110f; font-size: 16px; }
.ssearch-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.ssearch-card-context {
  color: #a75800;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ssearch-card-copy strong { font-size: 17px; line-height: 1.25; }
.ssearch-card-copy > span:not(.ssearch-card-context) {
  display: -webkit-box;
  overflow: hidden;
  color: #66635d;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ssearch-card-copy small { margin-top: 2px; color: #827f78; font-size: 10px; }
.ssearch-card-arrow { color: #9a978f; font-size: 19px; transition: transform 160ms ease; }
.ssearch-card:hover .ssearch-card-arrow { color: #a75800; transform: translateX(4px); }
.ssearch-more {
  justify-self: start;
  color: #11110f;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.ssearch-more:hover { color: #a75800; }

@media (max-width: 820px) {
  .ssearch-page { padding: 48px 0 88px; }
  .ssearch-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .ssearch-bar { min-height: 64px; padding: 0 16px; gap: 11px; }
  .ssearch-bar input { font-size: 17px; }
  .ssearch-intro,
  .ssearch-state { min-height: 220px; padding: 30px 24px; }
  .ssearch-intro { align-items: flex-start; }
  .ssearch-intro > span { width: 48px; height: 48px; }
  .ssearch-groups { gap: 48px; }
  .ssearch-card { padding: 18px 15px; grid-template-columns: 36px minmax(0, 1fr) 18px; gap: 11px; }
  .ssearch-card-mark { width: 34px; height: 34px; }
}
