/* ==========================================================================
   WorkZen Child Theme — Suchergebnisseite
   Präfix: --wzsr-   (workzen-search.css)
   Voraussetzung: workzen-nav.css bereits geladen
   ========================================================================== */

:root {
  --wzsr-hero-bg:       #14181c;
  --wzsr-hero-border:   rgba(255,255,255,0.07);
  --wzsr-card-bg:       #ffffff;
  --wzsr-card-border:   #E1E1E1;
  --wzsr-card-border-hv: #76A89A;
  --wzsr-pill-bg:       #CEDFDA;
  --wzsr-pill-color:    #255959;
  --wzsr-page-bg:       #F9F9F9;
}

.wz-search {
  background: var(--wzsr-page-bg);
  min-height: 60vh;
  font-family: var(--wz-font);
}

/* ---- Suchkopf ---- */
.wz-search__hero {
  background: var(--wzsr-hero-bg);
  border-bottom: 1px solid var(--wzsr-hero-border);
  padding: 52px 40px 44px;
}
.wz-search__hero-inner {
  max-width: 1512px;
  margin: 0 auto;
}
.wz-search__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wz-petrol-light);
}
.wz-search__headline {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.wz-search__headline em {
  font-style: normal;
  color: var(--wz-petrol-light);
}
.wz-search__meta {
  margin: 0 0 28px;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
}
.wz-search__form {
  display: flex;
  align-items: center;
  max-width: 560px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.wz-search__form:focus-within {
  border-color: var(--wz-petrol-light);
}
.wz-search__form-icon {
  width: 16px;
  height: 16px;
  border: 1.8px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  margin-left: 16px;
}
.wz-search__form-icon::after {
  content: "";
  position: absolute;
  right: -5px; bottom: -4px;
  width: 6px; height: 1.8px;
  background: rgba(255,255,255,0.35);
  transform: rotate(45deg);
}
.wz-search__form input[type="search"] {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: var(--wz-font);
  padding: 13px 14px;
}
.wz-search__form input[type="search"]::placeholder {
  color: rgba(255,255,255,0.3);
}
.wz-search__form button[type="submit"] {
  background: var(--wz-petrol) !important;
  border: none !important;
  color: #fff !important;
  font-family: var(--wz-font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 13px 20px !important;
  cursor: pointer !important;
  white-space: nowrap;
  border-radius: 0 !important;
  transition: background 0.15s ease !important;
}
.wz-search__form button[type="submit"]:hover {
  background: var(--wz-petrol-dark) !important;
}

/* ---- Ergebnis-Body ---- */
.wz-search__body {
  padding: 44px 40px 80px;
}
.wz-search__body-inner {
  max-width: 1512px;
  margin: 0 auto;
}

/* ---- Karten ---- */
.wz-search__results {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wz-search__card {
  background: var(--wzsr-card-bg);
  border: 1px solid var(--wzsr-card-border);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.wz-search__card:hover {
  border-color: var(--wzsr-card-border-hv);
  box-shadow: 0 4px 20px rgba(37,89,89,0.10);
  transform: translateY(-1px);
}
.wz-search__card-link {
  display: block;
  padding: 24px 28px;
  text-decoration: none;
  color: inherit;
}
.wz-search__pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--wzsr-pill-bg);
  color: var(--wzsr-pill-color);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.wz-search__card-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #252525;
  line-height: 1.3;
}
.wz-search__card:hover .wz-search__card-title {
  color: var(--wz-petrol);
}
.wz-search__card-excerpt {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #505050;
}
.wz-search__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wz-petrol);
}
.wz-search__card-arrow {
  transition: transform 0.15s ease;
}
.wz-search__card:hover .wz-search__card-arrow {
  transform: translateX(3px);
}

/* ---- Pagination ---- */
.wz-search__pagination { margin-top: 40px; }
.wz-search__pagination ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}
.wz-search__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--wzsr-card-border);
  background: #fff;
  color: #252525;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  font-family: var(--wz-font);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.wz-search__pagination .page-numbers:hover {
  border-color: var(--wz-petrol-light);
  color: var(--wz-petrol);
}
.wz-search__pagination .page-numbers.current {
  background: var(--wz-petrol);
  border-color: var(--wz-petrol);
  color: #fff;
}
.wz-search__pagination .page-numbers.dots {
  border: none; background: none;
}

/* ---- Keine Treffer ---- */
.wz-search__empty {
  text-align: center;
  padding: 60px 20px;
}
.wz-search__empty-icon {
  display: block;
  width: 48px; height: 48px;
  border: 2.5px solid #B5B5B5;
  border-radius: 50%;
  position: relative;
  margin: 0 auto 20px;
}
.wz-search__empty-icon::after {
  content: "";
  position: absolute;
  right: -14px; bottom: -12px;
  width: 16px; height: 2.5px;
  background: #B5B5B5;
  transform: rotate(45deg);
}
.wz-search__empty h2 {
  font-size: 22px; font-weight: 700;
  color: #252525; margin: 0 0 10px;
}
.wz-search__empty p {
  font-size: 14px; color: #505050; margin: 0 0 24px;
}
.wz-search__suggestions {
  display: flex; gap: 10px;
  justify-content: center; flex-wrap: wrap;
}
.wz-search__suggestions a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--wzsr-card-border);
  background: #fff;
  color: var(--wz-petrol);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  font-family: var(--wz-font);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wz-search__suggestions a:hover {
  border-color: var(--wz-petrol-light);
  background: #CEDFDA;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .wz-search__hero  { padding: 36px 20px 32px; }
  .wz-search__body  { padding: 28px 20px 60px; }
  .wz-search__form  { max-width: 100%; }
  .wz-search__card-link { padding: 18px 20px; }
  .wz-search__card-title { font-size: 16px; }
}
