/* ============================================================
   App-Cards — Ergaenzung zum bestehenden Theme.
   Greift nur auf .app-card* zu, aendert nichts am Theme selbst.
   ============================================================ */

.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  background: #fff;
  border: 1px solid #ececed;
  border-radius: 16px;
}
/* Die Karte selbst bleibt beim Hover ruhig - kein Anheben,
   kein Schatten, kein Randwechsel. Nur das Icon reagiert. */

.app-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-card-icon {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 16px;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-card:hover .app-card-icon {
  transform: scale(1.06) rotate(-4deg);
}

/* Titel bewusst wie im Theme: Poppins 600, dunkles Grau */
.app-card-title {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: #141414;
}

.app-card-title a {
  color: inherit;
}

.app-card-title a:hover {
  color: #646464;
}

.app-card-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #646464;
}

.app-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #f0f0f1;
  font-size: 14px;
  font-weight: 600;
  color: #141414;
}

.app-card-link span {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-card:hover .app-card-link span {
  transform: translateX(4px);
}

.app-card-link.is-muted {
  color: #a2a2a4;
  font-weight: 400;
}

@media (max-width: 767px) {
  .app-cards {
    gap: 20px;
  }
  .app-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-card-icon,
  .app-card-link span {
    transition: none;
  }
  .app-card:hover .app-card-icon,
  .app-card:hover .app-card-link span {
    transform: none;
  }
}

/* ---------- Titelzeile: Name + Plattform nebeneinander ---------- */
/* center statt baseline: die Pille sitzt damit mittig
   in der Titelzeile statt auf deren Grundlinie. */
.app-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 9px;
}

.app-card-plats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Kein text-transform: "iOS" muss "iOS" bleiben, nicht "IOS". */
.app-card-plat {
  font-family: "Open Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  color: #6b6b6f;
  background: #fff;
  border: 1px solid #e2e2e5;
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}

/* ---------- Logo als Icon-Kachel ----------
   Fuer Logos mit transparenten Ecken: ohne Flaeche dahinter
   greift ein border-radius nicht, weil dort keine Pixel sind. */
.app-card-icon--tile {
  box-sizing: border-box;
  padding: 12px;
  background: #f4f5f7;
  border: 1px solid #ececed;
  border-radius: 17px;
  object-fit: contain;
}

/* Plattform, die noch nicht allgemein verfuegbar ist:
   gestrichelt und heller, damit "geplant" nicht wie "fertig" aussieht. */
.app-card-plat--soon {
  border-style: dashed;
  border-color: #dcdce0;
  color: #9c9ca1;
}

.app-card[hidden] {
  display: none;
}

.cards-empty {
  text-align: center;
  color: #9c9ca1;
  font-size: 15px;
  padding: 48px 0 8px;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .filter-btn {
    transition: none;
  }
}

/* ============================================================
   Kopfzeile: Ueberschrift links, Filter rechts
   ============================================================ */
.products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid #ececed;
}

.products-head h2 {
  margin: 0;
}

/* Segmentierte Gruppe: ein zusammenhaengender Schalter statt
   vier lose Links. Die aktive Flaeche liegt hell auf grauer Bahn. */
.card-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: #f4f5f7;
  border-radius: 999px;
}

.filter-btn {
  font-family: "Open Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  color: #6b6b6f;
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.filter-btn:hover {
  color: #141414;
}

.filter-btn.is-active {
  color: #141414;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 20, 20, 0.14);
}

.filter-btn:focus-visible {
  outline: 2px solid #141414;
  outline-offset: 2px;
}

.filter-count {
  font-size: 10px;
  font-weight: 600;
  color: #b4b4b9;
  margin-left: 4px;
}

.filter-btn.is-active .filter-count {
  color: #9c9ca1;
}

/* ============================================================
   Raster: 3 Spalten, Sonderformate spannen mehrere
   ============================================================ */
.app-cards {
  grid-template-columns: repeat(3, 1fr);
}

/* ============================================================
   Meta-Zeile: Art des Projekts und Status nebeneinander
   ============================================================ */
.app-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
}

.app-card-type {
  font-family: "Open Sans", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b4b4b9;
}

/* Status mit vorangestelltem Punkt - Farbe traegt die Bedeutung,
   das Wort bleibt trotzdem lesbar. */
.app-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #9c9ca1;
}

.app-card-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8c8ce;
}

.app-card-status.is-live {
  color: #147a4f;
}

.app-card-status.is-live::before {
  background: #1a9a63;
}

/* Geplante Plattformen ausgeschrieben statt nur gestrichelt -
   eine gestrichelte Kontur allein liest sich wie "verfuegbar". */
.app-card-soon {
  margin: -4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #a2a2a8;
}

/* ============================================================
   Geisterkarten fuer noch nicht Veroeffentlichtes
   ============================================================ */
.app-card--ghost {
  background: transparent;
  border-style: dashed;
  border-color: #e6e6e9;
}

.app-card--ghost .app-card-icon {
  opacity: 0.38;
  filter: saturate(0.35);
}

.app-card--ghost .app-card-title {
  color: #9c9ca1;
}

.app-card--ghost .app-card-desc {
  color: #b4b4b9;
}

/* Auch Typ, Status und Plattform mitnehmen - sonst bleiben die
   kleinen Angaben kraeftiger als die Ueberschrift darunter. */
.app-card--ghost .app-card-type {
  color: #c9c9ce;
}

.app-card--ghost .app-card-status {
  color: #b4b4b9;
}

.app-card--ghost .app-card-status::before {
  background: #dcdce0;
}

.app-card--ghost .app-card-plat {
  color: #b4b4b9;
  border-color: #e6e6e9;
}

.app-card--ghost .app-card-link {
  border-top-color: #f2f2f4;
}

.app-card--ghost .app-card-link.is-muted {
  color: #c2c2c7;
}

/* ============================================================
   Abschlusskarte: Kontakt
   ============================================================ */
.app-card--cta {
  justify-content: center;
  gap: 10px;
  background: #f7f8fa;
  border-color: #ececed;
}

.app-card--cta .app-card-title {
  font-size: 22px;
  margin-top: 4px;
}

.app-card--cta .app-card-desc {
  margin-top: 6px;
}

.app-card-cta-btn {
  align-self: flex-start;
  margin-top: 12px;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #141414;
  border-radius: 999px;
  padding: 13px 24px;
  transition: background 0.2s;
}

.app-card-cta-btn:hover {
  background: #3a3a3d;
  color: #fff;
}

.app-card-cta-btn span {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-card-cta-btn:hover span {
  transform: translateX(3px);
}

/* ============================================================
   Responsiv
   ============================================================ */
@media (max-width: 991px) {
  .app-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .app-cards {
    grid-template-columns: 1fr;
  }
  .products-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .filter-btn,
  .app-card-cta-btn,
  .app-card-cta-btn span {
    transition: none;
  }
}


/* Platzhalter statt App-Icon, solange keines vorliegt.
   Gleiche Groesse und Rundung wie ein echtes iOS-Icon. */
.app-card-icon--placeholder {
  box-sizing: border-box;
  border: 1px dashed #dcdce0;
  border-radius: 16px;
  background: repeating-linear-gradient(
    -45deg,
    #f6f7f8 0 8px,
    #eff1f3 8px 16px
  );
}
