/*
Theme Name: Sheshi Canonical Directory, Legal Pages and Brand Polish
Version: 0.34.0
Description: Unifies all-listing navigation, removes decorative maps, corrects logo proportions and introduces readable legal surfaces.
*/

/* The click target stays accessible while the corrected artwork becomes quiet. */
.sheshi-site-header .sheshi-brand {
  min-height: 44px !important;
  align-items: center !important;
}

.sheshi-site-header .sheshi-logo--header {
  height: 36px !important;
  transform: translateX(-1px) !important;
}

.sheshi-site-footer .sheshi-logo--footer {
  width: 112px !important;
  height: auto !important;
}

/* `/verzeichnis/` is the canonical all-results route, not a second homepage. */
body.search.sheshi-shell .sheshi-directory-intro {
  padding: 42px 0 26px !important;
  border-bottom: 1px solid var(--border) !important;
  background: var(--surface-page) !important;
}

body.search.sheshi-shell .sheshi-directory-intro .sheshi-wrap {
  max-width: 1160px !important;
}

body.search.sheshi-shell .sheshi-directory-intro h1 {
  max-width: 760px !important;
  margin: 0 !important;
  color: var(--text-primary) !important;
  font-size: clamp(34px, 4vw, 48px) !important;
  font-weight: 760 !important;
  letter-spacing: -.045em !important;
  line-height: 1.04 !important;
}

body.search.sheshi-shell .sheshi-directory-intro > .sheshi-wrap > p {
  max-width: 680px !important;
  margin: 12px 0 0 !important;
  color: var(--text-secondary) !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

body.search.sheshi-shell .sheshi-directory-country-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 22px !important;
}

body.search.sheshi-shell .sheshi-directory-country-links a {
  display: inline-flex !important;
  min-height: 42px !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 0 13px !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  color: var(--text-primary) !important;
  background: var(--surface-sunken) !important;
  text-decoration: none !important;
}

body.search.sheshi-shell .sheshi-directory-country-links a:hover,
body.search.sheshi-shell .sheshi-directory-country-links a:focus-visible {
  border-color: var(--border-strong) !important;
}

body.search.sheshi-shell .sheshi-directory-country-links span {
  font-size: 13.5px !important;
  font-weight: 650 !important;
}

body.search.sheshi-shell .sheshi-directory-country-links strong {
  color: var(--accent) !important;
  font-size: 12px !important;
  font-variant-numeric: tabular-nums !important;
}

/* A truthful location action replaces the repeated fictional road drawing. */
body.single-listing .sheshi-profile-location-card {
  display: grid !important;
  min-width: 0 !important;
  grid-template-columns: 36px minmax(0, 1fr) 18px !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 9px !important;
  padding: 12px 14px !important;
  border: 1px solid var(--border) !important;
  border-radius: 11px !important;
  color: var(--text-primary) !important;
  background: var(--surface-sunken) !important;
  text-decoration: none !important;
}

body.single-listing .sheshi-profile-location-card:hover,
body.single-listing .sheshi-profile-location-card:focus-visible {
  border-color: var(--border-strong) !important;
}

body.single-listing .sheshi-profile-location-card:focus-visible {
  outline: 2px solid var(--focus) !important;
  outline-offset: 2px !important;
}

body.single-listing .sheshi-profile-location-card-icon {
  display: grid !important;
  width: 36px !important;
  height: 36px !important;
  place-items: center !important;
  border-radius: 9px !important;
  color: var(--accent) !important;
  background: var(--accent-bg) !important;
}

body.single-listing .sheshi-profile-location-card-icon svg,
body.single-listing .sheshi-profile-location-card-arrow {
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.single-listing .sheshi-profile-location-card-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 1px !important;
}

body.single-listing .sheshi-profile-location-card-copy small {
  color: var(--text-muted) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
}

body.single-listing .sheshi-profile-location-card-copy strong {
  overflow: hidden !important;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.single-listing .sheshi-profile-location-card-copy > span {
  color: var(--accent-text) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

body.single-listing .sheshi-profile-location-card-arrow {
  color: var(--accent) !important;
}

/* Persistent legal navigation remains compact and separate from beta status. */
.sheshi-site-footer .sheshi-copyright {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px 28px !important;
}

.sheshi-site-footer .sheshi-footer-legal {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px 18px !important;
}

.sheshi-site-footer .sheshi-footer-legal a {
  display: inline-flex !important;
  min-height: 36px !important;
  align-items: center !important;
  color: var(--dark-text-secondary) !important;
  font-size: 12.5px !important;
  text-decoration: none !important;
}

.sheshi-site-footer .sheshi-footer-legal a:hover,
.sheshi-site-footer .sheshi-footer-legal a:focus-visible {
  color: var(--dark-text-primary) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

/* Legal copy is a readable document, not a generic marketing-page blob. */
.sheshi-content-page--impressum,
.sheshi-content-page--datenschutz {
  max-width: 920px !important;
}

.sheshi-content-page--impressum .entry-content,
.sheshi-content-page--datenschutz .entry-content {
  max-width: 760px !important;
}

.sheshi-legal-document > .sheshi-page-lead {
  margin: 0 0 30px !important;
  color: var(--text-secondary) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

.sheshi-legal-section {
  padding: 26px 0 !important;
  border-top: 1px solid var(--border) !important;
}

.sheshi-legal-section:first-of-type {
  border-top: 0 !important;
  padding-top: 0 !important;
}

.sheshi-legal-section h2 {
  margin: 0 0 12px !important;
  color: var(--text-primary) !important;
  font-size: 21px !important;
  line-height: 1.25 !important;
}

.sheshi-legal-section h3 {
  margin: 20px 0 8px !important;
  color: var(--text-primary) !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

.sheshi-legal-section p,
.sheshi-legal-section li,
.sheshi-legal-section address {
  color: var(--text-secondary) !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
}

.sheshi-legal-section p {
  margin: 0 0 12px !important;
}

.sheshi-legal-section ul {
  margin: 10px 0 12px !important;
  padding-left: 21px !important;
}

.sheshi-legal-section address {
  margin: 0 !important;
  font-style: normal !important;
}

.sheshi-legal-definitions {
  display: grid !important;
  grid-template-columns: minmax(150px, .35fr) minmax(0, 1fr) !important;
  gap: 0 20px !important;
  margin: 14px 0 16px !important;
}

.sheshi-legal-definitions dt,
.sheshi-legal-definitions dd {
  margin: 0 !important;
  padding: 11px 0 !important;
  border-top: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.sheshi-legal-definitions dt {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}

.sheshi-legal-updated {
  margin: 24px 0 0 !important;
  color: var(--text-muted) !important;
}

.sheshi-legal-note {
  padding: 14px 16px !important;
  border-left: 3px solid var(--accent) !important;
  border-radius: 0 8px 8px 0 !important;
  background: var(--surface-sunken) !important;
}

@media (max-width: 767px) {
  .sheshi-site-header .sheshi-logo--header {
    height: 30px !important;
    transform: translateX(-1px) !important;
  }

  .sheshi-site-footer .sheshi-logo--footer {
    width: 104px !important;
  }

  body.search.sheshi-shell .sheshi-directory-intro {
    padding: 26px 0 20px !important;
  }

  body.search.sheshi-shell .sheshi-directory-intro h1 {
    font-size: 32px !important;
  }

  body.search.sheshi-shell .sheshi-directory-intro > .sheshi-wrap > p {
    margin-top: 9px !important;
    font-size: 14px !important;
  }

  body.search.sheshi-shell .sheshi-directory-country-links {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 16px !important;
  }

  body.search.sheshi-shell .sheshi-directory-country-links a {
    min-width: 0 !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 0 9px !important;
  }

  body.search.sheshi-shell .sheshi-directory-country-links span {
    overflow: hidden !important;
    font-size: 11.5px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.search.sheshi-shell .sheshi-sort-form select {
    width: clamp(148px, 45vw, 172px) !important;
    min-width: 0 !important;
    max-width: 172px !important;
  }

  body.single-listing .sheshi-profile-location-card {
    display: none !important;
  }

  .sheshi-site-footer .sheshi-copyright {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .sheshi-site-footer .sheshi-footer-legal {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .sheshi-content-page--impressum .entry-content,
  .sheshi-content-page--datenschutz .entry-content {
    max-width: none !important;
  }

  .sheshi-legal-section {
    padding: 22px 0 !important;
  }

  .sheshi-legal-section h2 {
    font-size: 19px !important;
  }

  .sheshi-legal-definitions {
    display: block !important;
  }

  .sheshi-legal-definitions dd {
    padding-top: 0 !important;
    border-top: 0 !important;
  }
}

@media (max-width: 359px) {
  body.search.sheshi-shell .sheshi-directory-country-links {
    grid-template-columns: 1fr !important;
  }
}
