/**
 * Top-Tools & Top-Links als zwei gleich große Pillen mit Dropdown (Variante G)
 */

.hero-top-strips.hero-top-strips--pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: clamp(8px, 1.2vw, 14px);
  align-items: start;
}

.hero:has(> .hero-top-strips--pills) {
  padding-top: clamp(4px, 0.7vw, 8px);
}

.hero-top-pill {
  position: relative;
  min-width: 0;
  z-index: 1;
}

.hero-top-pill.is-open {
  z-index: 80;
}

.hero-top-pill__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 2.45rem;
  padding: 6px 10px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f2ec 100%);
  box-shadow:
    0 2px 8px rgba(37, 49, 65, 0.08),
    0 1px 2px rgba(37, 49, 65, 0.05);
  font: inherit;
  color: var(--text-strong);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-radius 0.15s ease;
}

.hero-top-pill__trigger:hover,
.hero-top-pill.is-open .hero-top-pill__trigger {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow:
    0 3px 12px rgba(37, 99, 235, 0.1),
    0 1px 2px rgba(37, 49, 65, 0.06);
  background: #fff;
}

.hero-top-pill.is-open .hero-top-pill__trigger {
  border-radius: 12px;
}

.hero-top-pill__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-top-pill__badge {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  line-height: 1;
}

.hero-top-pill--tools .hero-top-pill__badge {
  background: #ccfbf1;
  color: #0f766e;
}

.hero-top-pill--links .hero-top-pill__badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.hero-top-pill__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-top-pill__title {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.15;
  font-family: var(--font-sans);
}

.hero-top-pill__hint {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-sans);
}

.hero-top-pill__chevron {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(37, 49, 65, 0.06);
  color: var(--muted);
  transition:
    transform 0.18s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.hero-top-pill.is-open .hero-top-pill__chevron {
  transform: rotate(180deg);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.hero-top-pill__chevron svg {
  width: 12px;
  height: 12px;
}

.hero-top-pill__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 90;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(37, 84, 140, 0.16);
}

.hero-top-pill__menu[hidden] {
  display: none;
}

.hero-top-pill__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  line-height: 1.25;
}

.hero-top-pill__item:hover,
.hero-top-pill__item:focus-visible {
  background: #f7f2ec;
  color: var(--accent-strong);
  outline: none;
  text-decoration: none;
}

.hero-top-pill__item-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  background: #f0ebe4;
}

.hero-top-pill--tools .hero-top-pill__item-icon {
  background: #ccfbf1;
}

.hero-top-pill--links .hero-top-pill__item-icon {
  background: #dbeafe;
}

.hero-top-pill__item-text {
  flex: 1;
  min-width: 0;
}

.hero-top-pill__item-ext {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}

.hero-top-pill__divider {
  height: 1px;
  margin: 3px 5px;
  background: var(--border);
  border: 0;
}

.hero-top-pill__footer {
  display: block;
  margin-top: 2px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--accent-strong);
  text-align: center;
  text-decoration: none;
  background: #eff6ff;
}

.hero-top-pill__footer:hover,
.hero-top-pill__footer:focus-visible {
  background: #dbeafe;
  outline: none;
  text-decoration: none;
}

@media (max-width: 720px) {
  .hero-top-strips.hero-top-strips--pills {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .hero-top-pill__trigger {
    min-height: 2.35rem;
    padding: 6px 10px 6px 8px;
  }

  .hero-top-pill__title {
    font-size: 0.82rem;
  }
}
