/* Anbieter-Übersicht (/anbieter/online-weiterbildung-anbieter/, views/provider-list.tsx).
   Eigene Datei wie ratgeber.css: company.css trägt die Detailseiten, hier steht
   die Übersicht — Kennzahlen, Porträtkarten, FAQ.
   Die Farben stehen bewusst als eigene Custom Properties am Container:
   --dorange ist in theme.css (#d77459) und filter-page.css (#FFB424)
   unterschiedlich belegt, je nachdem welche Datei eine Seite lädt. */

.anbieter-main {
  --anb-blau: #2c5669;
  --anb-blau-hell: #edf5ff;
  --anb-akzent: #ffb424;
  --anb-akzent-hell: #ffeec4;
  --anb-text: #4a616b;
  --anb-grau: #7b8b93;
  --anb-linie: #e2eaf0;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--seitenrand) 3rem;
}

.anbieter-main h2 {
  color: var(--anb-blau);
}

/* ===== Kopfbereich =====
   Volles Bühnenbanner statt Text auf Weiß: der Block bricht mit der
   calc(50% - 50vw)-Technik (siehe theme.css) aus dem 1180px-Container aus,
   der Innenrahmen hält Text und Teaser wieder auf derselben Breite und
   demselben linken Rand wie die Abschnitte darunter. */
.anbieter-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 2.6rem 0 2.3rem;
  background: var(--anb-blau);
  color: var(--anb-blau-hell);
}
.anbieter-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--seitenrand);
}
.anbieter-hero h1 {
  margin: 0 0 0.7rem;
  color: #fff;
}
.anbieter-hero-intro {
  max-width: 68ch;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--anb-blau-hell);
}

/* ===== Abschnitte ===== */
.anbieter-section {
  scroll-margin-top: 6rem;
  padding-top: 2.4rem;
}
.anbieter-section > h2 {
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--anb-akzent-hell);
  font-size: 1.45rem;
}
.anbieter-section-intro {
  max-width: 70ch;
  margin: 0.9rem 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--anb-text);
}

/* ===== Einordnung nach Ausgangslage ===== */
.anbieter-auswahl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-top: 1.3rem;
}
.anbieter-auswahl-box {
  position: relative;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid var(--anb-linie);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.anbieter-auswahl-box::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--anb-akzent);
}
.anbieter-auswahl-box h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--anb-blau);
}
.anbieter-auswahl-box p {
  margin: 0 0 0.8rem;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--anb-text);
}
.anbieter-auswahl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.anbieter-auswahl-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.75rem;
  border: 1px solid #cfe0ef;
  border-radius: 999px;
  background: var(--anb-blau-hell);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--anb-blau);
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.anbieter-auswahl-links a:hover,
.anbieter-auswahl-links a:focus-visible {
  background: var(--anb-akzent-hell);
  border-color: var(--anb-akzent);
}

/* ===== Porträtkarten ===== */
.anbieter-liste {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.4rem;
}
.anbieter-karte {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) minmax(0, 200px);
  gap: 1rem 1.5rem;
  align-items: start;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--anb-linie);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 18px rgba(193, 193, 193, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.anbieter-karte:hover,
.anbieter-karte:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -12px rgba(25, 51, 63, 0.4);
}
.anbieter-karte-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 74px;
  padding: 0.5rem;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  background: #fff;
}
.anbieter-karte-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.anbieter-karte-titel {
  margin: 0 0 0.15rem;
  font-size: 1.2rem;
  line-height: 1.3;
}
.anbieter-karte-titel a {
  color: var(--anb-blau);
  text-decoration: none;
}
.anbieter-karte-titel a:hover,
.anbieter-karte-titel a:focus-visible {
  text-decoration: underline;
}
.anbieter-karte-text {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--anb-text);
}

/* Themen-Chips aus den Anbieterdaten */
.anbieter-themen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}
.anbieter-themen li {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--anb-blau-hell);
  font-size: 0.82rem;
  color: var(--anb-blau);
}
.anbieter-themen li.anbieter-themen-mehr {
  background: none;
  color: var(--anb-grau);
}

/* Faktenzeile: Zahl der Kurse, Sitz, Bewertung */
.anbieter-fakten {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0.9rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid #eef2f6;
  font-size: 0.86rem;
  color: var(--anb-grau);
}
.anbieter-fakt {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.anbieter-fakt b {
  color: var(--anb-blau);
  font-variant-numeric: tabular-nums;
}
.anbieter-bewertung {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  font-size: 0.88rem;
  color: var(--anb-text);
}
.anbieter-bewertung-wert {
  font-weight: 700;
  color: var(--anb-blau);
}
.anbieter-bewertung-leer a {
  color: var(--anb-blau);
}

/* Sterne des Bewertungs-Plugins sind auf den Detailseiten 40px groß —
   in der Karte wären sie das auffälligste Element der Seite. */
.anbieter-karte .bottomteaser {
  width: auto;
}
.anbieter-karte .bottomteaser .glsr-summary-rating {
  display: none;
}
.anbieter-karte .bottomteaser .glsr-star-full,
.anbieter-karte .bottomteaser .glsr-star-empty,
.anbieter-karte .bottomteaser .glsr-star-half {
  width: 21px;
  height: 21px;
  margin-right: 2px;
  border-radius: 3px;
}
.anbieter-karte .bottomteaser .glsr-star-full::before,
.anbieter-karte .bottomteaser .glsr-star-empty::before,
.anbieter-karte .bottomteaser .glsr-star-half::before {
  font-size: 14px;
}

/* Schaltflächen der Karte */
.anbieter-karte-aktionen {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.anbieter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.anbieter-btn-primary {
  background: var(--anb-blau);
  color: #fff;
}
.anbieter-btn-primary:hover,
.anbieter-btn-primary:focus-visible {
  background: var(--anb-akzent);
  color: #1c1b1b;
}
.anbieter-btn-secondary {
  border: 1px solid var(--anb-blau);
  color: var(--anb-blau);
}
.anbieter-btn-secondary:hover,
.anbieter-btn-secondary:focus-visible {
  background: var(--anb-blau-hell);
}
.anbieter-karte-website {
  font-size: 0.85rem;
  color: var(--anb-grau);
  text-align: center;
  text-decoration: none;
}
.anbieter-karte-website:hover,
.anbieter-karte-website:focus-visible {
  color: var(--anb-blau);
  text-decoration: underline;
}

/* ===== Arbeitsweise ===== */
.anbieter-methode {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: anbieter-schritt;
}
.anbieter-methode li {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--anb-blau-hell);
}
.anbieter-methode li::before {
  counter-increment: anbieter-schritt;
  content: counter(anbieter-schritt);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  background: var(--anb-akzent);
  font-size: 0.9rem;
  font-weight: 700;
  color: #1c1b1b;
}
.anbieter-methode h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: var(--anb-blau);
}
.anbieter-methode p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--anb-text);
}
.anbieter-methode-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--anb-grau);
}

/* ===== FAQ ===== */
.anbieter-faq {
  margin-top: 1.2rem;
  border-top: 1px solid var(--anb-linie);
}
.anbieter-faq-item {
  border-bottom: 1px solid var(--anb-linie);
}
.anbieter-faq-item > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--anb-blau);
  cursor: pointer;
  list-style: none;
}
.anbieter-faq-item > summary::-webkit-details-marker {
  display: none;
}
.anbieter-faq-item > summary::after {
  content: "+";
  flex: none;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--anb-akzent);
}
.anbieter-faq-item[open] > summary::after {
  content: "–";
}
.anbieter-faq-item > summary:hover {
  color: #1a4152;
}
.anbieter-faq-antwort {
  max-width: 78ch;
  margin: 0;
  padding: 0 0.2rem 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--anb-text);
}

/* ===== Abschluss-Box und Themenlinks ===== */
.anbieter-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.3rem;
  margin-top: 2.6rem;
  padding: 1.5rem 1.7rem;
  border: 1px solid var(--anb-linie);
  border-radius: 16px;
  background: var(--anb-blau-hell);
}
.anbieter-cta-avatar {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--anb-blau-hell);
  box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(44, 86, 105, 0.16);
}
.anbieter-cta-content {
  flex: 1 1 320px;
}
.anbieter-cta h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}
.anbieter-cta p {
  max-width: 60ch;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #3d5865;
}
.anbieter-cta-aktionen {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: none;
}
.anbieter-cta-button {
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--anb-blau);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.16s ease;
}
.anbieter-cta-button:hover,
.anbieter-cta-button:focus-visible {
  background: var(--anb-akzent);
  color: #1c1b1b;
}
.anbieter-cta-link {
  font-size: 0.88rem;
  color: var(--anb-blau);
  text-align: center;
}

.anbieter-themenlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.anbieter-themenlinks a {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--anb-linie);
  border-radius: 999px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--anb-blau);
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.anbieter-themenlinks a:hover,
.anbieter-themenlinks a:focus-visible {
  background: var(--anb-blau-hell);
  border-color: #cfe0ef;
}

/* ===== Schmale Fenster ===== */
@media (max-width: 900px) {
  .anbieter-karte {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0.9rem 1.1rem;
  }
  .anbieter-karte-logo {
    height: 60px;
  }
  /* Die Schaltflächen rutschen unter Logo und Text in eine eigene Zeile,
     statt die Karte auf drei enge Spalten zu quetschen. */
  .anbieter-karte-aktionen {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .anbieter-karte-aktionen .anbieter-btn {
    flex: 1 1 190px;
  }
  .anbieter-karte-website {
    flex: 1 1 100%;
  }
}

@media (max-width: 719px) {
  .anbieter-hero h1 {
    font-size: 1.9rem;
  }
  .anbieter-karte {
    padding: 1.1rem;
  }
  .anbieter-cta {
    padding: 1.2rem;
  }
  .anbieter-cta-avatar {
    display: none;
  }
  .anbieter-cta-aktionen {
    width: 100%;
  }
}
