/* 0.35.0 – Startseite: Verzeichniszähler als verlinkte Zahlenzeile mit Länderanteil (Entwurf A + B vom 13.09.2026). */

body.sheshi-home .sheshi-home-hero .sheshi-home-directory-facts {
  display: grid !important;
  gap: 14px;
  max-width: 600px;
  margin: 18px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  text-align: left !important;
  color: var(--text-muted) !important;
}

body.sheshi-home .sheshi-home-stats {
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
}

body.sheshi-home .sheshi-home-stats a {
  display: grid;
  gap: 1px;
  margin-right: 22px;
  padding: 2px 22px 2px 0;
  border-right: 1px solid var(--border);
  color: var(--text-primary) !important;
  text-decoration: none !important;
}

body.sheshi-home .sheshi-home-stats a:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}

body.sheshi-home .sheshi-home-stats strong {
  font-size: 22px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

body.sheshi-home .sheshi-home-stats span {
  font-size: 13px;
  color: var(--text-muted);
}

body.sheshi-home .sheshi-home-stats a:hover span,
body.sheshi-home .sheshi-home-stats a:focus-visible span {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.sheshi-home .sheshi-home-stats a:focus-visible,
body.sheshi-home .sheshi-home-country-legend a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

body.sheshi-home .sheshi-home-country-share {
  display: grid;
  gap: 8px;
}

body.sheshi-home .sheshi-home-country-bar {
  display: flex;
  gap: 2px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-sunken);
}

body.sheshi-home .sheshi-home-country-bar span {
  display: block;
  height: 100%;
  min-width: 4px;
}

body.sheshi-home .sheshi-home-country-bar span:nth-child(1),
body.sheshi-home .sheshi-home-country-legend li:nth-child(1) i {
  background: var(--accent);
}

body.sheshi-home .sheshi-home-country-bar span:nth-child(2),
body.sheshi-home .sheshi-home-country-legend li:nth-child(2) i {
  background: #7e9aa8;
}

body.sheshi-home .sheshi-home-country-bar span:nth-child(3),
body.sheshi-home .sheshi-home-country-legend li:nth-child(3) i {
  background: #9fb0b8;
}

body.sheshi-home .sheshi-home-country-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.sheshi-home .sheshi-home-country-legend li {
  margin: 0 !important;
  padding: 0 !important;
}

body.sheshi-home .sheshi-home-country-legend a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
}

body.sheshi-home .sheshi-home-country-legend a:hover {
  color: var(--accent-text) !important;
}

body.sheshi-home .sheshi-home-country-legend .sheshi-country-count {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

body.sheshi-home .sheshi-home-facts-line,
body.sheshi-home .sheshi-home-country-legend .sheshi-country-code {
  display: none;
}

body.sheshi-home .sheshi-home-country-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

body.sheshi-home .sheshi-home-country-dach {
  flex-basis: 100%;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Mobile (Entwurf 3, 13.09.2026): one summary line, the bar, and each count directly under its segment. */
@media (max-width: 767px) {
  body.sheshi-home .sheshi-home-hero .sheshi-home-directory-facts {
    gap: 8px;
    margin-top: 32px !important;
  }

  body.sheshi-home .sheshi-home-stats,
  body.sheshi-home .sheshi-home-country-dach,
  body.sheshi-home .sheshi-home-country-legend .sheshi-country-name,
  body.sheshi-home .sheshi-home-country-legend i {
    display: none !important;
  }

  body.sheshi-home .sheshi-home-facts-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin: 0 !important;
    font-size: 13.5px;
    color: var(--text-muted);
  }

  body.sheshi-home .sheshi-home-facts-line strong {
    font-size: 17px;
    font-weight: 650;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
  }

  body.sheshi-home .sheshi-home-facts-line a {
    flex: none;
    color: var(--accent-text) !important;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
  }

  body.sheshi-home .sheshi-home-country-share {
    gap: 5px;
  }

  body.sheshi-home .sheshi-home-country-bar {
    height: 6px;
  }

  body.sheshi-home .sheshi-home-country-legend {
    flex-wrap: nowrap;
    gap: 2px;
  }

  body.sheshi-home .sheshi-home-country-legend li {
    flex: var(--share, 1) 1 0;
    min-width: 0;
    font-size: 12px;
    white-space: nowrap;
  }

  body.sheshi-home .sheshi-home-country-legend .sheshi-country-code {
    display: inline;
    border: 0 !important;
    text-decoration: none !important;
    cursor: inherit;
    color: var(--text-secondary);
  }

  body.sheshi-home .sheshi-home-country-legend .sheshi-country-count {
    color: var(--text-primary) !important;
    font-weight: 600;
  }
}

@media (max-width: 359px) {
  body.sheshi-home .sheshi-home-facts-cats {
    display: none;
  }
}
