/* Doradoo - Startseite: "Top Kantone" Zeilen-Layout.
   Alle Kantone gleich behandelt (kein Podium/Medaillen fuer die ersten Plaetze).
   Handy/Tablet: griffigere Groessen statt filigran, zuerst 12 Kantone,
   danach Knopf "Alle 26 Kantone anschauen" (Pfeilchen je Zeile bewusst noch
   ohne Funktion). Ab Desktop-Breite (gleicher Umbruchpunkt wie das Theme
   sonst auch nutzt) laeuft die Liste zweispaltig, alle 26 sofort sichtbar,
   kein Knopf, kein Pfeilchen. */

.states {
  margin-top: 44px;
}

.states .state-box {
  display: block !important;
  height: auto !important;
}

.states .item-state {
  display: grid !important;
  grid-template-columns: 22px 30px 1fr 66px 36px 20px !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  height: auto !important;
  padding: 12px 0 !important;
  border-top: 1px solid #e5e5e5;
  break-inside: avoid;
}
.states .item-state:first-child {
  border-top: none;
}

/* Alter Rang-Zaehler (::before mit CSS-Counter) ausblenden - Rang kommt jetzt
   ueber die eigene .dd-rang-Zeile aus dem JS, sonst wird die Zahl doppelt gezeigt. */
.states .item-state::before {
  content: none !important;
}

.states .dd-rang {
  color: #aaaaaa;
  font-weight: 700;
  font-size: 15px;
}

.states .dd-wappen {
  width: 28px !important;
  height: 20px !important;
  background-size: contain !important;
}

.states .dd-name {
  font-weight: 600;
  font-size: 16px;
  color: #222222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.states .dd-balken-spur {
  height: 6px;
  border-radius: 99px;
  background: #eeeeee;
  overflow: hidden;
}
.states .dd-balken-fuellung {
  height: 100%;
  border-radius: 99px;
  background: #f8c647;
}

.states .dd-anzahl {
  text-align: right;
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
}

.states .dd-chev {
  color: #b5b5b5;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

/* Auf Handy/Tablet: nur die ersten 12 Kantone zeigen, Rest hinter dem Knopf. */
.states .item-state.dd-mehr {
  display: none !important;
}
.states .state-box.dd-offen .item-state.dd-mehr {
  display: grid !important;
}

.states .dd-mehr-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  margin-bottom: 40px;
  padding: 13px 0;
  background: #f8c647;
  color: #2a2200;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  text-align: center;
}
.states .dd-mehr-btn:active {
  opacity: .85;
}

/* Ab Desktop-Breite: zweispaltig, kompakter Tabellen-Look statt Karten,
   groessere und besser lesbare Schrift, mehr Luft zwischen Rang/Wappen/Name.
   Alle 26 sofort sichtbar - kein Knopf, kein Pfeilchen (nur fuer Handy). */
@media screen and (min-width: 1240px) {
  .states {
    margin-top: 0;
    background: none !important;
    box-shadow: none !important;
  }
  .states .state-box {
    max-width: 1560px !important;
    margin: 0 auto !important;
    column-count: 2 !important;
    column-gap: 24px !important;
    background: none !important;
    box-shadow: none !important;
  }
  .states .title {
    font-size: 34px !important;
    font-weight: 700 !important;
  }
  .states .item-state {
    grid-template-columns: 28px 40px 1fr 140px 60px !important;
    gap: 16px !important;
    height: 50px !important;
    padding: 0 !important;
    border-top-color: #e5e5e5 !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .states .item-state.dd-mehr {
    display: grid !important;
  }
  .states .dd-chev {
    display: none !important;
  }
  .states .dd-mehr-btn {
    display: none !important;
  }
  .states .dd-rang {
    font-size: 16px;
    color: #aaaaaa;
  }
  .states .dd-wappen {
    width: 26px !important;
    height: 26px !important;
    margin-right: 0 !important;
    background-size: contain !important;
  }
  .states .dd-name {
    font-size: 19px;
    font-weight: 600;
    color: #333333;
  }
  .states .dd-balken-spur {
    height: 6px;
    background: #eeeeee;
  }
  .states .dd-balken-fuellung {
    background: #f8c647;
  }
  .states .dd-anzahl {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
  }
}


/* Untertitel unter "Top Kantone" (kommt aus dem alten ::after-Regel in
   "Doradoo - Startseite"): dort steht nur der deutsche Text fest im CSS.
   Hier nur die Uebersetzung ergaenzen, Position/Stelle bleibt genau dort,
   wo der Text schon stand - kein zusaetzliches Element im DOM. */
html[lang="fr"] .states h2.title::after {
  content: "Là où il y a actuellement le plus d'offres" !important;
}
html[lang="it"] .states h2.title::after {
  content: "Dove ci sono attualmente più offerte" !important;
}
html[lang="en"] .states h2.title::after {
  content: "Where there are currently the most listings" !important;
}

/* Ab Desktop-Breite: die native ::after-Regel (aus "Doradoo - Startseite")
   gilt nur bis 1239px, deshalb hier eigene Regel fuer Desktop - gleiche
   Farbe/Groesse wie vorher, direkt unter der Ueberschrift. */
@media screen and (min-width: 1240px) {
  .states h2.title::after {
    content: "Wo gerade am meisten angeboten wird" !important;
    display: block !important;
    margin: 6px 0 20px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #8a8a8a !important;
    letter-spacing: 0 !important;
    /* Erbt sonst "Montserrat-Bold" von der Ueberschrift - deshalb hier
       explizit die normale Schriftart, sieht sonst fett aus obwohl
       font-weight schon 400 ist. */
    font-family: "Montserrat", sans-serif !important;
  }
}
