/* === Grundlayout für alle Hub-Übersichten (Bewerbungstipps, später auch andere) === */

.category-hubs {
  margin-block: 1.5rem 2rem;
}

.category-hubs .hubs-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));  /* Handy: 1 Spalte */
  gap: 1rem;
}

/* Tablet: 2 Spalten */
@media (min-width: 768px) {
  .category-hubs .hubs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop: 3 Spalten */
@media (min-width: 1024px) {
  .category-hubs .hubs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Bewerbungstipps: Kachel "Tests & Assessment-Center" ausblenden */
.category-hubs--bewerbungstipps .hub-tile[href*="assessmentcenter"] {
  display: none;
}


/* --- Kachel-Style --- */

.category-hubs .hub-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  text-decoration: none;
  color: #222222;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

/* leichtes Hover-Feedback */

.category-hubs .hub-tile:hover {
  border-color: #d9d9d9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

/* Icon links */

.category-hubs .hub-ico {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Textbereich */

.category-hubs .hub-text {
  display: block;
}

/* Überschrift in der Kachel */

.category-hubs .hub-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  color: #222222;
}

/* Unterzeile(n) – aber NICHT das "Du bist hier"-Label */

.category-hubs .hub-text span:not(.hub-here) {
  display: block;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #555555;
}

/* --- "Du bist hier"-Label (Basiszustand: unsichtbar) --- */

.category-hubs .hub-here {
  display: none;                 /* wird nur bei .is-active aktiviert */
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.35rem;
  letter-spacing: 0.04em;
}

/* --- Aktive Kachel --- */

.category-hubs .hub-tile.is-active {
  border-color: #ff8a3d;         /* Orange-Ton – bei Bedarf anpassen */
  background: #ff8a3d;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

/* Textfarben in aktiver Kachel auf weiß drehen */

.category-hubs .hub-tile.is-active .hub-text strong,
.category-hubs .hub-tile.is-active .hub-text span:not(.hub-here) {
  color: #ffffff;
}

/* Icon in aktiver Kachel minimal abdunkeln, damit es nicht "ausbrennt" */

.category-hubs .hub-tile.is-active .hub-ico {
  filter: brightness(0.96);
}

/* "Du bist hier"-Badge nur in aktiver Kachel anzeigen */

.category-hubs .hub-tile.is-active .hub-here {
  display: inline-block;
  padding: 0.12rem 0.6rem;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: #ffffff;
  color: #ff8a3d;
}
