/* =============================================================
   NBX PROJECT INFO BOX
   Diese Datei nach der Haupt-CSS-Datei einbinden.
============================================================= */

.project-info-box {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 1.5rem 0 0;
  padding: 1.15rem 3.25rem 1.15rem 1.25rem;

  border: 1px solid rgba(0, 188, 235, 0.28);
  border-left: 4px solid #00bceb;
  border-radius: 0.9rem;

  background:
    linear-gradient(
      135deg,
      rgba(0, 188, 235, 0.10),
      rgba(42, 91, 215, 0.05)
    );

  color: inherit;
  overflow-wrap: anywhere;
}

.project-info-box::before {
  content: "i";

  position: absolute;
  top: 1rem;
  right: 1rem;

  display: grid;
  place-items: center;

  width: 1.55rem;
  height: 1.55rem;

  border: 1px solid rgba(0, 188, 235, 0.35);
  border-radius: 50%;

  background: rgba(0, 188, 235, 0.12);
  color: #008bad;

  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.project-info-title {
  margin: 0 0 0.45rem;
  padding: 0;

  color: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.project-info-text {
  margin: 0;
  padding: 0;

  color: inherit;
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.88;
}

/*
  Sorgt dafür, dass der Button unter der Infobox nicht an ihr klebt.
*/
.project-info-box + .project-link {
  margin-top: 1.25rem;
}

/*
  Falls die Projektkarte ein Flex-Layout verwendet, bleibt die Infobox
  trotzdem in voller Breite und wird nicht seitlich zusammengedrückt.
*/
.project-card-content > .project-info-box {
  flex: 0 0 auto;
  align-self: stretch;
}

/* Mobil */
@media (max-width: 620px) {
  .project-info-box {
    padding: 1rem 2.9rem 1rem 1rem;
    border-radius: 0.8rem;
  }

  .project-info-box::before {
    top: 0.85rem;
    right: 0.85rem;
  }

  .project-info-title {
    font-size: 0.98rem;
  }

  .project-info-text {
    font-size: 0.92rem;
  }
}

/* Dunkles Farbschema */
@media (prefers-color-scheme: dark) {
  .project-info-box {
    border-color: rgba(56, 210, 245, 0.35);
    border-left-color: #38d2f5;

    background:
      linear-gradient(
        135deg,
        rgba(56, 210, 245, 0.11),
        rgba(95, 125, 255, 0.07)
      );
  }

  .project-info-box::before {
    border-color: rgba(56, 210, 245, 0.4);
    background: rgba(56, 210, 245, 0.14);
    color: #79e4ff;
  }
}
